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-02-01 08:21:32 +0100
committerPhilipp Hansch <dev@phansch.net>2019-02-01 18:18:45 +0100
commit4aff8711f0a047fca0f06627e94618f4da1f7e4f (patch)
tree8f04b4a0115f57f37bd267b8a9c5784deaec4331 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent5176a5c4b70423ca1fc4dbaa77ada0f40afdb479 (diff)
downloadrust-4aff8711f0a047fca0f06627e94618f4da1f7e4f.tar.gz
rust-4aff8711f0a047fca0f06627e94618f4da1f7e4f.zip
Fix ICE in vec_box lint and add run-rustfix
`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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions