Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
RalfJung
force-pushed
the
coroutine-implicit-unsafe-pinned
branch
from
November 1, 2026 21:52
39fd433 to
f83ff53
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
RalfJung
force-pushed
the
coroutine-implicit-unsafe-pinned
branch
2 times, most recently
from
November 13, 2026 19:47
193d78f to
7be97e3
Compare
RalfJung
force-pushed
the
coroutine-implicit-unsafe-pinned
branch
from
November 13, 2026 19:47
7be97e3 to
193d78f
Compare
Contributor
|
the builtin impls need to be disabled here rust/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs Lines 1453 to 1466 in 0259d5e and for old solver rust/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs Lines 816 to 837 in 0259d5e |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is meant to finally properly fix #63818 by treating all corotuines as big
UnsafePinned/UnsafeCellin their own right, without actually changing the types of the fields.This does mean that references created to those fields still behave according to the normal aliasing rules. I think that's fine? The concern here is a self-referential future like
Nothing must alias
mutreffor its lifetime. Today we have aliases in the form of&mutto the future itself. This PR basically removes those aliases by not attaching any assumptions to those outer&mut.Status: incomplete!
The
FreezeandUnsafeUnpintraits don't honor the new logic yet.Also RA seems to have some logic that checks for UnsafeCell (for layout computation, IIUC) which may need updating.
Zulip discussion