Skip to content

Conversation

petrochenkov
Copy link
Contributor

No bare (Ref)Cells remain in rustc_resolve, only Cm(Ref)Cells checking that nothing is modified during speculative resolution, and Cache(Ref)Cell aliases for cells that need to be migrated to mutexes/atomics.

cc @LorrensP-2158466

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 9, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 9, 2025

r? @SparrowLii

rustbot has assigned @SparrowLii.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

// because they can be fetched by glob imports from those modules, and bring traits
// into scope both directly and through glob imports.
let key = BindingKey::new_disambiguated(ident, ns, || {
// FIXME(batched): Will be fixed in batched resolution.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed all these scattered FIXMEs in favor of one FIXME on mod ref_mut.

}

impl<T: Copy> Clone for CmCell<T> {
#[inline]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these functions are private and available for optimizer to analyze, no need for #[inline] unless proven by benchmarks.

@LorrensP-2158466
Copy link
Contributor

Nice! This makes it more clear what should be migrated and how, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants