diff options
| author | bors <bors@rust-lang.org> | 2023-01-12 10:58:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-12 10:58:19 +0000 |
| commit | 80e616e00bce9e1ebb969805c01741ce1353d2c4 (patch) | |
| tree | c1ad6e98f686f13d7c86e1e853c3a4ff0cc70cbd /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff | |
| parent | 09aceea36d790ecdd24d746c478e7d7421fa6b98 (diff) | |
| parent | 7413a9954f2d2967f790fc634509a0850ff81769 (diff) | |
| download | rust-80e616e00bce9e1ebb969805c01741ce1353d2c4.tar.gz rust-80e616e00bce9e1ebb969805c01741ce1353d2c4.zip | |
Auto merge of #13936 - danieleades:static-mod-depth-limit, r=lnicola
interior-mutable types should be 'static' rather than 'const with the 'tracking' feature enabled, `limit::Limit` is interior mutable, so the `const` `hir_def::nameres::mod_resolution::MOD_DEPTH_LIMIT` is probably meant to be `static` rather than `const`. with `const` you get a new copy of it everywhere it's used, instead of the shared, global value that seems to be the intent. This fix brought to you by the catchily-named `clippy::declare_interior_mutable_const` lint.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
