about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-22 10:23:57 +0000
committerbors <bors@rust-lang.org>2018-12-22 10:23:57 +0000
commit19c7885c2a197be4a14fb6ca4dcd8734ce17d399 (patch)
tree4c899400c2701fb04f284b68d39136c7ac8f484e /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parentd3c747c752ba6255848f29826bd8d46d4a075f18 (diff)
parentd395d45ca753099c2ff952604169a1602eae898a (diff)
downloadrust-19c7885c2a197be4a14fb6ca4dcd8734ce17d399.tar.gz
rust-19c7885c2a197be4a14fb6ca4dcd8734ce17d399.zip
Auto merge of #3570 - muth:master, r=phansch
panic at map_unit_fn.rs:202 for map() without args

map_unit_fn.rs accessed map() arguments before type check which ensures type is Option or Result.

Boiled it down to a simple test case.

FWIW: Found this panic when running clippy against code which used a gtk::Window's map() fn inherited from gtk::WidgetExt   http://gtk-rs.org/docs/gtk/trait.WidgetExt.html#tymethod.map
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions