-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix issue #36036. #36281
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 issue #36036. #36281
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @eddyb |
if pointee.is_sized(tcx, &infcx.parameter_environment, DUMMY_SP) { | ||
Scalar { value: Pointer, non_zero: non_zero } | ||
} else { | ||
let pointee = normalize_associated_type(infcx, pointee); |
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.
Oh I didn't realize this line was already there, that makes the fix clearer.
@bors r+ |
📌 Commit 09e6a98 has been approved by |
We were treating an associated type as unsized even when the concrete instantiation was actually sized. Fix is to normalize before checking if it is sized.
Seems like a clear case for beta-accepted: one line, fairly trivial change, fixes regression. Marking it as such. cc @rust-lang/compiler |
Fix #36036.
We were treating an associated type as unsized even when the concrete instantiation was actually sized. Fix is to normalize before checking if it is sized.