Make match exhaustive.

This commit is contained in:
Camille GILLOT 2024-01-08 22:40:32 +00:00
parent cae0dc2833
commit 5d6463c26c

View file

@ -141,7 +141,7 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
}
TempState::Unpromotable
}
_ => TempState::Unpromotable,
TempState::Unpromotable | TempState::PromotedOut => TempState::Unpromotable,
};
}