Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ICE in vec_box lint and add run-rustfix #3732

Merged
merged 2 commits into from Feb 2, 2019
Merged

Conversation

@phansch
Copy link
Member

@phansch phansch commented Feb 1, 2019

Includes #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

@oli-obk
Copy link
Collaborator

@oli-obk oli-obk commented Feb 1, 2019

@bors r+

@bors
Copy link
Contributor

@bors bors commented Feb 1, 2019

📌 Commit d1b1568 has been approved by oli-obk

@bors

This comment has been hidden.

@bors

This comment has been hidden.

tests/ui/vec_box_sized.rs Outdated Show resolved Hide resolved
phansch added 2 commits Feb 1, 2019
`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.
@phansch phansch force-pushed the phansch:fix_ice_3720 branch from d1b1568 to 38347ba Feb 1, 2019
@phansch
Copy link
Member Author

@phansch phansch commented Feb 1, 2019

@bors r=oli-obk

@bors
Copy link
Contributor

@bors bors commented Feb 1, 2019

📌 Commit 38347ba has been approved by oli-obk

@bors
Copy link
Contributor

@bors bors commented Feb 1, 2019

Testing commit 38347ba with merge 2972d54...

bors added a commit that referenced this pull request Feb 1, 2019
Fix ICE in vec_box lint and add run-rustfix

Includes #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
@bors
Copy link
Contributor

@bors bors commented Feb 2, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 2972d54 to master...

@bors bors merged commit 38347ba into rust-lang:master Feb 2, 2019
3 checks passed
3 checks passed
@travis-ci
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@bors
homu Test successful
Details
@phansch phansch deleted the phansch:fix_ice_3720 branch Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants