Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when closing bracket interpreted as formatting fill character #113774

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

compiler-errors
Copy link
Member

Fixes #112732 by explaining why it's erroring in the way it is.

@rustbot
Copy link
Collaborator

rustbot commented Jul 17, 2023

r? @eholk

(rustbot has picked a reviewer for you, use r? to override)

@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 Jul 17, 2023
@rust-log-analyzer

This comment has been minimized.

@eholk
Copy link
Contributor

eholk commented Jul 18, 2023

I made a couple style questions / suggestions, but I don't think they're blocking. Feel free to r=me if you like this PR the way it is.

@rust-cloud-vms rust-cloud-vms bot force-pushed the fill-expr-bracket branch from 6c628fa to e021191 Compare July 19, 2023 16:37
@compiler-errors
Copy link
Member Author

I simplified the control flow.

@bors r=eholk

@bors
Copy link
Contributor

bors commented Jul 19, 2023

📌 Commit e021191 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 Jul 19, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 19, 2023
Rollup of 7 pull requests

Successful merges:

 - rust-lang#113444 (add tests for alias bound preference)
 - rust-lang#113716 (Add the `no-builtins` attribute to functions when `no_builtins` is applied at the crate level.)
 - rust-lang#113754 (Simplify native_libs query)
 - rust-lang#113765 (Make it clearer that edition functions are `>=`, not `==`)
 - rust-lang#113774 (Improve error message when closing bracket interpreted as formatting fill character)
 - rust-lang#113785 (Fix invalid display of inlined re-export when both local and foreign items are inlined)
 - rust-lang#113803 (Fix inline_const with interpolated block)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 444ac1a into rust-lang:master Jul 19, 2023
@rustbot rustbot added this to the 1.73.0 milestone Jul 19, 2023
@compiler-errors compiler-errors deleted the fill-expr-bracket branch August 11, 2023 20:01
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.

Format interprets closing brace as fill and suggesting to add another closing brace for no apperant reason.
5 participants