Exit when there are unmatched delims to avoid noisy diagnostics#108297
Merged
bors merged 5 commits intorust-lang:masterfrom Mar 1, 2023
Merged
Exit when there are unmatched delims to avoid noisy diagnostics#108297bors merged 5 commits intorust-lang:masterfrom
bors merged 5 commits intorust-lang:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
297d57a to
84f8f03
Compare
Member
Author
|
@rustbot ready |
4b5fc87 to
2176d5b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
2176d5b to
83297e1
Compare
compiler/rustc_parse/src/lib.rs
Outdated
Contributor
There was a problem hiding this comment.
Is Parser::unclosed_delims field ever populated after this change?
Member
Author
There was a problem hiding this comment.
Yes, but this field is used in parser itself, I found that we could have more cleanup on Parser::unclosed_delims, maybe it's better to do it in another Pr.
83297e1 to
a62fb55
Compare
a62fb55 to
f808877
Compare
Member
Author
|
@rustbot ready |
Contributor
|
@bors r+ |
Collaborator
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Feb 28, 2023
…, r=petrochenkov Exit when there are unmatched delims to avoid noisy diagnostics From rust-lang#104012 (comment) r? `@petrochenkov`
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Mar 1, 2023
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#108297 (Exit when there are unmatched delims to avoid noisy diagnostics) - rust-lang#108531 (rustdoc: Show that repeated expression arrays can be made with constant values) - rust-lang#108536 (Update books) - rust-lang#108550 (Remove the `capture_disjoint_fields` feature) - rust-lang#108551 (Descriptive error when users try to combine RPITIT/AFIT with specialization) - rust-lang#108554 (Only look for param in item's generics if it actually comes from generics) - rust-lang#108555 (Fix a race in the query system) - rust-lang#108558 (add missing feature in core/tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This was referenced Mar 1, 2023
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Mar 2, 2023
…mpiler-errors Add test case for mismatched open/close delims Fixes rust-lang#104367 Fixes rust-lang#105209 After landing rust-lang#108297, these issues are resolved.
This was referenced Mar 3, 2023
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Mar 4, 2023
…elims, r=compiler-errors Remove unclosed_delims from parser After landing rust-lang#108297 we could remove `unclosed_delims` from the parser now.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Mar 4, 2023
…elims, r=compiler-errors Remove unclosed_delims from parser After landing rust-lang#108297 we could remove `unclosed_delims` from the parser now.
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Feb 15, 2025
…, r=jieyouxu,compiler-errors Remove unnecessary check code in unused_delims After PR rust-lang#108297, we make sure there is no unmatched delims in early lint check.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Feb 15, 2025
Rollup merge of rust-lang#137029 - chenyukang:yukang-fix-unused-check, r=jieyouxu,compiler-errors Remove unnecessary check code in unused_delims After PR rust-lang#108297, we make sure there is no unmatched delims in early lint check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From #104012 (comment)
r? @petrochenkov