-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Concrete regions can show up in mir borrowck if the originated from there #88533
The head ref may contain hidden characters: "tait_\u{1F9CA}"
Conversation
…here. We used to not encounter them here, because we took regions from typeck's opaque type resolution by renumbering them. We don't do that anymore.
It would be nice to add a regression test for this particular thing. We could reduce the code from #83190, the @rustbot ping cleanup-crew To try to reduce that example and come up with a regression test. Anyway, we're in a rush to merge this and backport to beta so ... @bors r+ rollup=never |
📌 Commit 43738c6 has been approved by |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @h-michael @HallerPatrick @hdhoang @hellow554 @henryboisdequin @imtsuki @JamesPatrickGill @kanru @KarlK90 @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @shekohex @sinato @smmalis37 @steffahn @Stupremee @tamuhey @turboladen @woshilapin @yerke |
This fixes |
@bors p=1 |
☀️ Test successful - checks-actions |
…ulacrum [beta] backports This PR backports: * Concrete regions can show up in mir borrowck if the originated from there rust-lang#88533 (fixes rust-lang#83190) * Fix loading large rlibs rust-lang#88506 (fixes rust-lang#88351) * Display associated types of implementors rust-lang#88490 (fixes rust-lang#86631) * Tracking issue for UNSUPPORTED_CALLING_CONVENTIONS rust-lang#88397 r? `@Mark-Simulacrum`
During weekly performance triage, this was identified as causing a very small regression in instruction counts (up to 1.0% on |
Since these examples compiled before this PR, and this PR solely removes a |
The new significance algorithm essentially concurs that this was not after all a performance regression. If we do include very small changes, then there's a couple regressions, but those are pretty likely to be unrelated to this PR -- it looks like the majority of the new instructions come from |
We used to not encounter them here, because we took regions from typeck's opaque type resolution by renumbering them. We don't do that anymore. Instead mir borrock does all the logic, and it can handle concrete regions just fine, as long as it created them itself.
fixes #83190 which was introduced by #87287
r? @spastorino