We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acdfec6 commit 1c992c0Copy full SHA for 1c992c0
compiler/rustc_middle/src/mir/mod.rs
@@ -2581,10 +2581,9 @@ pub struct UnevaluatedConst<'tcx> {
2581
}
2582
2583
impl<'tcx> UnevaluatedConst<'tcx> {
2584
- // FIXME: probably should get rid of this method. It's also wrong to
2585
- // shrink and then later expand a promoted.
2586
#[inline]
2587
pub fn shrink(self) -> ty::UnevaluatedConst<'tcx> {
+ assert_eq!(self.promoted, None);
2588
ty::UnevaluatedConst { def: self.def, substs: self.substs }
2589
2590
0 commit comments