Skip to content

Commit d0ab32e

Browse files
committed
Fix polarity of debug assert
1 parent 2a30d18 commit d0ab32e

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ fn mir_promoted(
456456
def: LocalDefId,
457457
) -> (&Steal<Body<'_>>, &Steal<IndexVec<Promoted, Body<'_>>>) {
458458
debug_assert!(
459-
tcx.is_trivial_const(def).is_some(),
459+
tcx.is_trivial_const(def).is_none(),
460460
"Tried to get mir_promoted of a trivial const"
461461
);
462462

0 commit comments

Comments
 (0)