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:
parent
6c27482115
commit
c864e18678
@ -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;
|
||||
},
|
||||
_ => {},
|
||||
|
Loading…
Reference in New Issue
Block a user