]> git.lizzy.rs Git - rust.git/commit
Auto merge of #3732 - phansch:fix_ice_3720, r=oli-obk
authorbors <bors@rust-lang.org>
Fri, 1 Feb 2019 23:49:46 +0000 (23:49 +0000)
committerbors <bors@rust-lang.org>
Fri, 1 Feb 2019 23:49:46 +0000 (23:49 +0000)
commit2972d546021a3035a118c8e25df3e0f0ca2ef12c
treebf2dde7122516d3a4b8f87136819e3e7dc54aa9c
parent5176a5c4b70423ca1fc4dbaa77ada0f40afdb479
parent38347bad3868aee11e2b47db5ae15a39829becd7
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