-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
when checking pointee metadata, canonicalize the Sized
check
#95315
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Would it make sense to change |
@bjorn3 that works, but might be a perf regression because we need to do extra canonicalization every call |
Is anything blocking this? |
rolling a new reviewer... r? rust-lang/compiler |
@bors r+ rollup=never |
📌 Commit 3624f1c has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e7575f9): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Use
infcx.predicate_must_hold_modulo_regions
with aSized
obligation instead of just callingty.is_sized
, because the latter does not canonicalize region and type vars (and in the test case I added in this PR, there's a region var in theParamEnv
).Fixes #95311