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 2a30d18 commit d0ab32eCopy full SHA for d0ab32e
compiler/rustc_mir_transform/src/lib.rs
@@ -456,7 +456,7 @@ fn mir_promoted(
456
def: LocalDefId,
457
) -> (&Steal<Body<'_>>, &Steal<IndexVec<Promoted, Body<'_>>>) {
458
debug_assert!(
459
- tcx.is_trivial_const(def).is_some(),
+ tcx.is_trivial_const(def).is_none(),
460
"Tried to get mir_promoted of a trivial const"
461
);
462
0 commit comments