Skip to content

Commit c864e18

Browse files
committed
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.
1 parent 6c27482 commit c864e18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/derive.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,7 @@ impl<'tcx> Visitor<'tcx> for UnsafeVisitor<'_, 'tcx> {
411411

412412
if let ExprKind::Block(block, _) = expr.kind {
413413
match block.rules {
414-
BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided)
415-
| BlockCheckMode::PushUnsafeBlock(UnsafeSource::UserProvided)
416-
| BlockCheckMode::PopUnsafeBlock(UnsafeSource::UserProvided) => {
414+
BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided) => {
417415
self.has_unsafe = true;
418416
},
419417
_ => {},

0 commit comments

Comments
 (0)