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:
authorJoshua Holmer <jholmer@dminc.com>2018-10-17 10:43:32 -0400
committerJoshua Holmer <jholmer@dminc.com>2018-10-17 10:43:32 -0400
commit4b68c965feec8ce0e86d0b396baca5e33c3cf0af (patch)
tree956be266761be3da344ce9b2bc9a28a2b157ad6f /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent6ae89c4f1123d81e56141b02cd3b83436c1ad035 (diff)
downloadrust-4b68c965feec8ce0e86d0b396baca5e33c3cf0af.tar.gz
rust-4b68c965feec8ce0e86d0b396baca5e33c3cf0af.zip
Resolve ICE in needless range loop lint
An ICE would occur if the needless range loop was triggered
within a procedural macro, because Clippy would try to produce
a code suggestion which was invalid, and caused the compiler
to crash.

This commit takes the same approach which Clippy currently takes
to work around this type of crash in the needless pass by value lint,
which is to skip the lint if Clippy is inside of a macro.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions