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:
authorPhilipp Hansch <dev@phansch.net>2019-01-26 09:49:55 +0100
committerPhilipp Hansch <dev@phansch.net>2019-01-26 10:57:15 +0100
commit8c416c31975764c97812aa33eaa10c74d521d47e (patch)
tree625d2efd078310d7bc68f5a137998da7482febd4 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parentf1753522d8f3bb2d218266b4760f7a99f027f5ca (diff)
downloadrust-8c416c31975764c97812aa33eaa10c74d521d47e.tar.gz
rust-8c416c31975764c97812aa33eaa10c74d521d47e.zip
Prevent incorrect cast_lossless suggestion in const_fn
`::from` is not a const fn, so applying the suggestion of
`cast_lossless` would fail to compile. The fix is to skip the lint if
the cast is found inside a const fn.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions