mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-05 03:23:25 +00:00
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 @@ impl<'tcx> Visitor<'tcx> for UnsafeVisitor<'_, 'tcx> {
|
||||
|
||||
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