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-02-01 23:49:46 +0000
committerbors <bors@rust-lang.org>2019-02-01 23:49:46 +0000
commit2972d546021a3035a118c8e25df3e0f0ca2ef12c (patch)
treebf2dde7122516d3a4b8f87136819e3e7dc54aa9c /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent5176a5c4b70423ca1fc4dbaa77ada0f40afdb479 (diff)
parent38347bad3868aee11e2b47db5ae15a39829becd7 (diff)
downloadrust-2972d546021a3035a118c8e25df3e0f0ca2ef12c.tar.gz
rust-2972d546021a3035a118c8e25df3e0f0ca2ef12c.zip
Auto merge of #3732 - phansch:fix_ice_3720, r=oli-obk
Fix ICE in vec_box lint and add run-rustfix

Includes https://github.com/rust-lang/rust-clippy/pull/3726

`hir::Ty` doesn't seem to know anything about type bounds and
`cx.tcx.type_of(def_id)` caused an ICE when it was passed a generic type
with a bound:

```
src/librustc_typeck/collect.rs:1311: unexpected non-type Node::GenericParam: Type { default: None, synthetic: None }
```

Converting it to a proper `Ty` fixes the ICE and catches a few more places
where the lint applies.

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