Skip to content

Trim extra space when suggesting removing bad let - #132996

Merged
bors merged 1 commit into
rust-lang:masterfrom
clubby789:unn-let-space
Nov 14, 2024
Merged

Trim extra space when suggesting removing bad let#132996
bors merged 1 commit into
rust-lang:masterfrom
clubby789:unn-let-space

Conversation

@clubby789

Copy link
Copy Markdown
Contributor

Fixes#132969

@rustbot

Copy link
Copy Markdown
Collaborator

r? @chenyukang

rustbot has assigned @chenyukang.
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

@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 Nov 13, 2024

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, you can r=me after PR CI is green.

@jieyouxujieyouxu assigned jieyouxu and unassigned chenyukangNov 13, 2024
@clubby789

Copy link
Copy Markdown
ContributorAuthor

@bors r=jieyouxu rollup

@bors

bors commented Nov 13, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 1136bbf has been approved by jieyouxu

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 13, 2024
Comment on lines 27 to +28
LL | let 1 => {}
| ^^^
| ^^^^

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ideally we'd modify RemoveLet to have two separate spans, one for the let and another for the let removal suggestion so that the primary span doesn't point at unnecessary whitespace. We can address that as follow up.

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 14, 2024
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#126046 (Implement `mixed_integer_ops_unsigned_sub`)
- rust-lang#132302 (rustdoc: Treat declarative macros more like other item kinds)
- rust-lang#132842 (ABI checks: add support for tier2 arches)
- rust-lang#132995 (compiletest: Add ``exact-llvm-major-version`` directive)
- rust-lang#132996 (Trim extra space when suggesting removing bad `let`)
- rust-lang#132998 (Unvacation myself)
- rust-lang#133000 ([rustdoc] Fix duplicated footnote IDs)
- rust-lang#133001 (actually test next solver)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit e6b3a55 into rust-lang:masterNov 14, 2024
@rustbotrustbot added this to the 1.84.0 milestone Nov 14, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Nov 14, 2024
Rollup merge of rust-lang#132996 - clubby789:unn-let-space, r=jieyouxu
Trim extra space when suggesting removing bad `let`
Fixesrust-lang#132969
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.

Extra space when suggesting to remove token

6 participants

@clubby789@rustbot@bors@estebank@jieyouxu@chenyukang