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!

@eholk
Copy link
Contributor

eholk commented Oct 14, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 14, 2025

📌 Commit 204508d has been approved by eholk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 14, 2025
bors added a commit that referenced this pull request Oct 15, 2025
Rollup of 7 pull requests

Successful merges:

 - #146841 (Stabilise `rotate_left` and `rotate_right` in `[_]` as `const fn` items.)
 - #146949 (Add vsx register support for ppc inline asm, and implement preserves_flag option)
 - #147539 (resolve: Use primitives for conditional mutability more consistently)
 - #147685 (remove span calls from deprecated attribute checking)
 - #147699 (Clairify docs for `AttributeKind::DocComment`)
 - #147706 (Add myself to review rotation)
 - #147711 (Clarify that UB will occur, not can/may in GlobalAlloc docs)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 33b1e92 into rust-lang:master Oct 15, 2025
10 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 15, 2025
rust-timer added a commit that referenced this pull request Oct 15, 2025
Rollup merge of #147539 - petrochenkov:cmresolve, r=eholk

resolve: Use primitives for conditional mutability more consistently

No bare `(Ref)Cell`s remain in `rustc_resolve`, only `Cm(Ref)Cell`s 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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

6 participants