The Wayback Machine - https://web.archive.org/web/20210904171557/https://github.com/rust-lang/rust/pull/88547
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

fix(rustc_lint): better detect when parens are necessary #88547

Merged

Conversation

@notriddle
Copy link
Contributor

@notriddle notriddle commented Aug 31, 2021

Fixes #88519

@rust-highfive
Copy link
Collaborator

@rust-highfive rust-highfive commented Aug 31, 2021

r? @michaelwoerister

(rust-highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Contributor

@bors bors commented Sep 1, 2021

The latest upstream changes (presumably #87688) made this pull request unmergeable. Please resolve the merge conflicts.

@notriddle notriddle force-pushed the notriddle:notriddle/is-expr-delims-necessary branch from c7809a6 to 59b245e Sep 1, 2021
@michaelwoerister
Copy link
Member

@michaelwoerister michaelwoerister commented Sep 1, 2021

Copy link
Member

@davidtwco davidtwco left a comment

LGTM, thanks!

@davidtwco
Copy link
Member

@davidtwco davidtwco commented Sep 1, 2021

@bors
Copy link
Contributor

@bors bors commented Sep 1, 2021

📌 Commit 59b245e has been approved by davidtwco

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Sep 1, 2021
…necessary, r=davidtwco

fix(rustc_lint): better detect when parens are necessary

Fixes rust-lang#88519
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Sep 1, 2021
…necessary, r=davidtwco

fix(rustc_lint): better detect when parens are necessary

Fixes rust-lang#88519
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 1, 2021
…laumeGomez

Rollup of 11 pull requests

Successful merges:

 - rust-lang#83342 (Allow writing of incomplete UTF-8 sequences to the Windows console via stdout/stderr)
 - rust-lang#87114 (Lint missing Abi in ast validation instead of lowering.)
 - rust-lang#87580 (Update Windows Argument Parsing)
 - rust-lang#88161 (Fix handling of +whole-archive native link modifier.)
 - rust-lang#88363 (Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.)
 - rust-lang#88490 (Display associated types of implementors)
 - rust-lang#88505 (Use `unwrap_unchecked` where possible)
 - rust-lang#88532 (Remove single use variables)
 - rust-lang#88543 (Improve closure dummy capture suggestion in macros.)
 - rust-lang#88547 (fix(rustc_lint): better detect when parens are necessary)
 - rust-lang#88565 (Add regression test for issue 83190)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Sep 2, 2021
…necessary, r=davidtwco

fix(rustc_lint): better detect when parens are necessary

Fixes rust-lang#88519
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 2, 2021
…laumeGomez

Rollup of 9 pull requests

Successful merges:

 - rust-lang#88363 (Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.)
 - rust-lang#88386 (Point at unclosed delimiters as part of the primary MultiSpan)
 - rust-lang#88428 (expand: Treat more macro calls as statement macro calls)
 - rust-lang#88505 (Use `unwrap_unchecked` where possible)
 - rust-lang#88532 (Remove single use variables)
 - rust-lang#88543 (Improve closure dummy capture suggestion in macros.)
 - rust-lang#88547 (fix(rustc_lint): better detect when parens are necessary)
 - rust-lang#88560 (`fmt::Formatter::pad`: don't call chars().count() more than one time)
 - rust-lang#88565 (Add regression test for issue 83190)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Contributor

@bors bors commented Sep 4, 2021

Testing commit 59b245e with merge 72a51c3...

@bors
Copy link
Contributor

@bors bors commented Sep 4, 2021

☀️ Test successful - checks-actions
Approved by: davidtwco
Pushing 72a51c3 to master...

@bors bors merged commit 72a51c3 into rust-lang:master Sep 4, 2021
11 checks passed
11 checks passed
@github-actions
PR (mingw-check, ubuntu-latest-xl)
Details
@github-actions
PR (x86_64-gnu-llvm-10, ubuntu-latest-xl)
Details
@github-actions
PR (x86_64-gnu-tools, 1, ubuntu-latest-xl)
Details
@github-actions
auto
Details
@github-actions
master
Details
@github-actions
bors build finished
Details
@github-actions
bors build finished
Details
@github-actions
bors build finished
Details
@github-actions
bors build finished
Details
@bors
homu Test successful
Details
@rustbot rustbot added this to the 1.57.0 milestone Sep 4, 2021
@notriddle notriddle deleted the notriddle:notriddle/is-expr-delims-necessary branch Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants