1
Fork 0

Reinstate the error-code error over the feature gate error

This commit is contained in:
oli 2020-12-30 17:20:38 +00:00
parent 4158e58d79
commit 3ed14033f7
13 changed files with 23 additions and 29 deletions

View file

@ -587,7 +587,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
// Note: This is only sound if every local that has a `StorageDead` has a
// `StorageDead` in every control flow path leading to a `return` terminator.
if self.local_has_storage_dead(place.local) {
self.check_op(ops::CellBorrowBehindRef);
self.check_op(ops::TransientCellBorrow);
} else {
self.check_op(ops::CellBorrow);
}