Remove some last remants of {push,pop}_unsafe!

These macros have already been removed, but there was still some code
handling these macros. That code is now removed.
This commit is contained in:
Smitty 2021-05-17 17:19:48 -04:00
parent 6c27482115
commit c864e18678

View File

@ -411,9 +411,7 @@ fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {
if let ExprKind::Block(block, _) = expr.kind {
match block.rules {
BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided)
| BlockCheckMode::PushUnsafeBlock(UnsafeSource::UserProvided)
| BlockCheckMode::PopUnsafeBlock(UnsafeSource::UserProvided) => {
BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided) => {
self.has_unsafe = true;
},
_ => {},