Skip to content

Commit ebf88c9

Browse files
committed
Auto merge of rust-lang#85421 - Smittyvb:rm_pushpop_unsafe, r=matthewjasper
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.
2 parents 611b74e + c864e18 commit ebf88c9

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)