Skip to content

Commit

Permalink
Make match exhaustive.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jan 8, 2024
1 parent cae0dc2 commit 5d6463c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/promote_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
}
TempState::Unpromotable
}
_ => TempState::Unpromotable,
TempState::Unpromotable | TempState::PromotedOut => TempState::Unpromotable,
};
}

Expand Down

0 comments on commit 5d6463c

Please sign in to comment.