diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-08 22:40:32 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-01-08 22:42:07 +0000 |
| commit | 5d6463c26c0f20f855da4ca54caa583c2258fb2f (patch) | |
| tree | 800fcdde78752f455e1a7b7765e3c0b042bf1b14 /compiler/rustc_mir_transform/src | |
| parent | cae0dc28332065dfa3fa168fdc1f2818bcbdf0c3 (diff) | |
| download | rust-5d6463c26c0f20f855da4ca54caa583c2258fb2f.tar.gz rust-5d6463c26c0f20f855da4ca54caa583c2258fb2f.zip | |
Make match exhaustive.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/promote_consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/promote_consts.rs b/compiler/rustc_mir_transform/src/promote_consts.rs index 9b9c9aae88b..841b86fed45 100644 --- a/compiler/rustc_mir_transform/src/promote_consts.rs +++ b/compiler/rustc_mir_transform/src/promote_consts.rs @@ -141,7 +141,7 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> { } TempState::Unpromotable } - _ => TempState::Unpromotable, + TempState::Unpromotable | TempState::PromotedOut => TempState::Unpromotable, }; } |
