Skip to content

fix(mut_mutex_lock): don't lint on indexing and field accesses#16435

Open
ada4a wants to merge 2 commits intorust-lang:masterfrom
ada4a:push-lwmnouxulwsy
Open

fix(mut_mutex_lock): don't lint on indexing and field accesses#16435
ada4a wants to merge 2 commits intorust-lang:masterfrom
ada4a:push-lwmnouxulwsy

Conversation

@ada4a
Copy link
Copy Markdown
Contributor

@ada4a ada4a commented Jan 21, 2026

A v2 of #16261, due to #16261 (comment)

Fixes #16253

changelog: [mut_mutex_lock]: don't lint on indexing and field accesses

r? @Jarcho

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 21, 2026
@Jarcho
Copy link
Copy Markdown
Contributor

Jarcho commented Jan 22, 2026

Like in the other PR you are still going to need to find the projection base (i.e. walk deref calls) and check that all derefs can be switched to their mutable form. A "known problems" section needs to be added to the lint to explain how the lint doesn't take lifetimes into account as well.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 2, 2026

☔ The latest upstream changes (possibly #15793) made this pull request unmergeable. Please resolve the merge conflicts.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mut_mutex_lock: FP on struct.mutex where struct is behind &

3 participants