Skip to content

Commit 5d6463c

Browse files
committed
Make match exhaustive.
1 parent cae0dc2 commit 5d6463c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_mir_transform/src/promote_consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
141141
}
142142
TempState::Unpromotable
143143
}
144-
_ => TempState::Unpromotable,
144+
TempState::Unpromotable | TempState::PromotedOut => TempState::Unpromotable,
145145
};
146146
}
147147

0 commit comments

Comments
 (0)