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>2019-01-28 14:30:18 +0000
committerbors <bors@rust-lang.org>2019-01-28 14:30:18 +0000
commit410d5ba6c3bea86632247a559685c2e13dedea91 (patch)
treed68574c014f3ce953b1a531f5b182d50f52ad037 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent4a2116b30591f06813396fb4b89fd8d23e913164 (diff)
parent8c416c31975764c97812aa33eaa10c74d521d47e (diff)
downloadrust-410d5ba6c3bea86632247a559685c2e13dedea91.tar.gz
rust-410d5ba6c3bea86632247a559685c2e13dedea91.zip
Auto merge of #3700 - phansch:would_you_like_some_help_with_this_const_fn, r=oli-obk
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.

Fixes #3656
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions