about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-12 10:58:19 +0000
committerbors <bors@rust-lang.org>2023-01-12 10:58:19 +0000
commit80e616e00bce9e1ebb969805c01741ce1353d2c4 (patch)
treec1ad6e98f686f13d7c86e1e853c3a4ff0cc70cbd /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent09aceea36d790ecdd24d746c478e7d7421fa6b98 (diff)
parent7413a9954f2d2967f790fc634509a0850ff81769 (diff)
downloadrust-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_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions