diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-20 07:52:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 07:52:44 +0200 |
| commit | 03d558f5b6de84d8aba5af5ac5dd2d21181eaad6 (patch) | |
| tree | 69aeb2868d99d90ebca302281d66c43d07910a7e /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 8ddc8921ffafdf203ac449df6c79ac0cab49743a (diff) | |
| parent | e8a9af9ad972be1b2df26b8e0b4905e6808a912f (diff) | |
| download | rust-03d558f5b6de84d8aba5af5ac5dd2d21181eaad6.tar.gz rust-03d558f5b6de84d8aba5af5ac5dd2d21181eaad6.zip | |
Rollup merge of #126652 - Manishearth:anon-const-scope, r=bjorn3,Urgau
Clarify that anonymous consts still do introduce a new scope See https://github.com/rust-lang/rust/issues/120363#issuecomment-2177064702 This error message is misleading: it's trying to say that `const _ : () = ...` is a workaround for the lint, but by saying that anonymous constants are treated as being in the parent scope, it makes them appear useless for scope-hiding. They *are* useful for scope-hiding, they are simply treated as part of the parent scope when it comes to this lint.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
