diff options
| author | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2024-09-30 22:21:45 +0800 |
|---|---|---|
| committer | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2024-09-30 22:21:45 +0800 |
| commit | ed5443fcdf3b4d02a89aec929cd62aa97586096f (patch) | |
| tree | 2c6adc213540f0c6dddacdafcb5cc6e3b974b013 /compiler | |
| parent | 6d1a25ad7e8ce026a0a2b0c85046afc81ef529ba (diff) | |
| download | rust-ed5443fcdf3b4d02a89aec929cd62aa97586096f.tar.gz rust-ed5443fcdf3b4d02a89aec929cd62aa97586096f.zip | |
apply suggestions
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint/src/if_let_rescope.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/if_let_rescope.rs b/compiler/rustc_lint/src/if_let_rescope.rs index 8cb63d5cb05..8f643de836a 100644 --- a/compiler/rustc_lint/src/if_let_rescope.rs +++ b/compiler/rustc_lint/src/if_let_rescope.rs @@ -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; |
