1
Fork 0

apply suggestions

This commit is contained in:
Ding Xiang Fei 2024-09-30 22:21:45 +08:00
parent 6d1a25ad7e
commit ed5443fcdf
No known key found for this signature in database
GPG key ID: 3CD748647EEF6359
4 changed files with 75 additions and 8 deletions

View file

@ -260,7 +260,8 @@ impl<'tcx> LateLintPass<'tcx> for IfLetRescope {
// if let .. { body } else { break; }
// }
// ```
// There is no observable from the `{ break; }` block so the edition change
// There is no observable change in drop order on the overall `if let` expression
// given that the `{ break; }` block is trivial so the edition change
// means nothing substantial to this `while` statement.
self.skip.insert(value.hir_id);
return;