-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
clippy_lints/src/mut_key.rs
Outdated
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<'_>> { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, fixed
Could I r=you clippy up once include this fix? |
@bors r+ p=10 |
📌 Commit bca1259 has been approved by |
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
☀️ Test successful - checks-travis, status-appveyor |
Fix a potential ICE on test with debug assertion, caused on rust-lang/rust#67661.
r? @oli-obk
changelog: none