about summary refs log tree commit diff
path: root/src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-04 11:49:23 +0000
committerbors <bors@rust-lang.org>2021-06-04 11:49:23 +0000
commitb1752f616f532c068a19e8b690c31b5411be89cd (patch)
treef1073b9d73e1bd72a62ff7bf8dacc3f5ae3e3676 /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff
parent5f746a1c2ae130ef84704c941b962075af6693ac (diff)
parent38ab1a616631944e8cef21c9441e2ef2ffa3a594 (diff)
downloadrust-b1752f616f532c068a19e8b690c31b5411be89cd.tar.gz
rust-b1752f616f532c068a19e8b690c31b5411be89cd.zip
Auto merge of #7319 - m-ou-se:cfg-not-const, r=camsteffen
Don't warn about `cfg!(..)` as a constant in assertions

This makes clippy understand that `cfg!(..)` is not just a hardcoded `true` or `false` (even though it expands to one of those).

cc `@khyperia`

changelog: Don't treat `cfg!(..)` as a constant in [`assertions-on-constants`]
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions