Skip to content

Fix #131977 parens mangled in shared mut static lint suggestion - #132095

Merged
bors merged 1 commit into
rust-lang:masterfrom
gechelberger:fix-131977
Nov 8, 2024
Merged

Fix #131977 parens mangled in shared mut static lint suggestion#132095
bors merged 1 commit into
rust-lang:masterfrom
gechelberger:fix-131977

Conversation

@gechelberger

@gechelbergergechelberger commented Oct 24, 2024

Copy link
Copy Markdown

Resolves#131977 for static mut references after discussion with
Esteban & Jieyou on t-compiler/help.

This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.

@rustbot

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @wesleywiser (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbotrustbot 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 24, 2024
@wesleywiser

Copy link
Copy Markdown
Member

Thanks @gechelberger!

@bors r+ rollup

@bors

bors commented Nov 7, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit cc0ec04 has been approved by wesleywiser

It is now in the queue for this repository.

@borsbors 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 Nov 7, 2024
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 7, 2024
…iser
Fixrust-lang#131977 parens mangled in shared mut static lint suggestion
Resolvesrust-lang#131977 for static mut references after discussion with
Esteban & Jieyou on [t-compiler/help](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/linting.20with.20parens.20in.20the.20HIR).
This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 7, 2024
…iser
Fixrust-lang#131977 parens mangled in shared mut static lint suggestion
Resolvesrust-lang#131977 for static mut references after discussion with
Esteban & Jieyou on [t-compiler/help](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/linting.20with.20parens.20in.20the.20HIR).
This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 7, 2024
…llaumeGomez
Rollup of 8 pull requests
Successful merges:
- rust-lang#130586 (Set "symbol name" in raw-dylib import libraries to the decorated name)
- rust-lang#131913 (Add `{ignore,needs}-{rustc,std}-debug-assertions` directive support)
- rust-lang#132095 (Fixrust-lang#131977 parens mangled in shared mut static lint suggestion)
- rust-lang#132131 ([StableMIR] API to retrieve definitions from crates)
- rust-lang#132696 (Compile `test_num_f128` conditionally on `reliable_f128_math` config)
- rust-lang#132738 (Initialize channel `Block`s directly on the heap)
- rust-lang#132739 (Fix `librustdoc/scrape_examples.rs` formatting)
- rust-lang#132740 (Update test for LLVM 20's new vector splat syntax)
r? `@ghost`
`@rustbot` modify labels: rollup
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Nov 8, 2024
…iser
Fixrust-lang#131977 parens mangled in shared mut static lint suggestion
Resolvesrust-lang#131977 for static mut references after discussion with
Esteban & Jieyou on [t-compiler/help](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/linting.20with.20parens.20in.20the.20HIR).
This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.
This was referenced Nov 8, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2024
…kingjubilee
Rollup of 10 pull requests
Successful merges:
- rust-lang#130586 (Set "symbol name" in raw-dylib import libraries to the decorated name)
- rust-lang#131913 (Add `{ignore,needs}-{rustc,std}-debug-assertions` directive support)
- rust-lang#132095 (Fixrust-lang#131977 parens mangled in shared mut static lint suggestion)
- rust-lang#132131 ([StableMIR] API to retrieve definitions from crates)
- rust-lang#132639 (core: move intrinsics.rs into intrinsics folder)
- rust-lang#132696 (Compile `test_num_f128` conditionally on `reliable_f128_math` config)
- rust-lang#132737 (bootstrap: Print better message if lock pid isn't available)
- rust-lang#132739 (Fix `librustdoc/scrape_examples.rs` formatting)
- rust-lang#132740 (Update test for LLVM 20's new vector splat syntax)
- rust-lang#132741 (Update mips64 data layout to match LLVM 20 change)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 6c0e8ef into rust-lang:masterNov 8, 2024
@rustbotrustbot added this to the 1.84.0 milestone Nov 8, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2024
Rollup merge of rust-lang#132095 - gechelberger:fix-131977, r=wesleywiser
Fixrust-lang#131977 parens mangled in shared mut static lint suggestion
Resolvesrust-lang#131977 for static mut references after discussion with
Esteban & Jieyou on [t-compiler/help](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/linting.20with.20parens.20in.20the.20HIR).
This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
…iser
Fixrust-lang#131977 parens mangled in shared mut static lint suggestion
Resolvesrust-lang#131977 for static mut references after discussion with
Esteban & Jieyou on [t-compiler/help](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/linting.20with.20parens.20in.20the.20HIR).
This doesn't do anything to change the underlying issue if there are other expressions that generate lint suggestions which need to be applied within parentheses.
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
…kingjubilee
Rollup of 10 pull requests
Successful merges:
- rust-lang#130586 (Set "symbol name" in raw-dylib import libraries to the decorated name)
- rust-lang#131913 (Add `{ignore,needs}-{rustc,std}-debug-assertions` directive support)
- rust-lang#132095 (Fixrust-lang#131977 parens mangled in shared mut static lint suggestion)
- rust-lang#132131 ([StableMIR] API to retrieve definitions from crates)
- rust-lang#132639 (core: move intrinsics.rs into intrinsics folder)
- rust-lang#132696 (Compile `test_num_f128` conditionally on `reliable_f128_math` config)
- rust-lang#132737 (bootstrap: Print better message if lock pid isn't available)
- rust-lang#132739 (Fix `librustdoc/scrape_examples.rs` formatting)
- rust-lang#132740 (Update test for LLVM 20's new vector splat syntax)
- rust-lang#132741 (Update mips64 data layout to match LLVM 20 change)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Missing parenthesis in static_mut_refs diagnostic suggestion

4 participants

@gechelberger@rustbot@wesleywiser@bors