about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2023-01-06 14:41:50 +0100
committerblyxyas <blyxyas@gmail.com>2023-01-06 14:41:50 +0100
commit1b9a25e28d76221ee9906b2c3ec833a9837d0349 (patch)
tree9a574a6c687f18668f5ede7a9bc9cf7df705065a /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parent179a22f624470a34c58f9ec712d729d7156dbcb0 (diff)
downloadrust-1b9a25e28d76221ee9906b2c3ec833a9837d0349.tar.gz
rust-1b9a25e28d76221ee9906b2c3ec833a9837d0349.zip
[#10167] Clarify that the lint only works if x eq. y in a `for` loop.
Reading the documentation for the lint, one could expect that the lint works in all cases that `X == Y`. This is false.

While the lint was updated, the documentation wasn't.

More information about the `N..N` problem in #5689 and #5628
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions