Skip to content

Possibly fix an ICE on test #4964

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

Merged
merged 2 commits into from
Dec 28, 2019
Merged

Conversation

JohnTitor
Copy link
Member

@JohnTitor JohnTitor commented Dec 28, 2019

Fix a potential ICE on test with debug assertion, caused on rust-lang/rust#67661.
r? @oli-obk

changelog: none

RawPtr(TypeAndMut { ty: inner_ty, .. }) | Ref(_, inner_ty, _) => is_concrete_type(inner_ty),
Dynamic(..) | Opaque(..) | Param(..) => false,
_ => true,
fn concrete_type(ty: Option<Ty<'_>>) -> Option<Ty<'_>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The argument does not need to be an Option

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, fixed

@JohnTitor
Copy link
Member Author

Could I r=you clippy up once include this fix?

@flip1995
Copy link
Member

@bors r+ p=10

@bors
Copy link
Contributor

bors commented Dec 28, 2019

📌 Commit bca1259 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Dec 28, 2019

⌛ Testing commit bca1259 with merge 6bf87d5...

bors added a commit that referenced this pull request Dec 28, 2019
Possibly fix an ICE on test

Fix a potential ICE on test with debug assertion, caused on rust-lang/rust#67661.
r? @oli-obk

changelog: none
@bors
Copy link
Contributor

bors commented Dec 28, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing 6bf87d5 to master...

@bors bors merged commit bca1259 into rust-lang:master Dec 28, 2019
@JohnTitor JohnTitor deleted the fix-potential-ice branch December 28, 2019 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants