-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Exit when there are unmatched delims to avoid noisy diagnostics #108297
Conversation
This comment has been minimized.
This comment has been minimized.
297d57a
to
84f8f03
Compare
@rustbot ready |
4b5fc87
to
2176d5b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
2176d5b
to
83297e1
Compare
let mut parser = stream_to_parser(sess, stream, None); | ||
parser.unclosed_delims = unclosed_delims; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Parser::unclosed_delims
field ever populated after this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@rustbot ready |
@bors r+ |
…, r=petrochenkov Exit when there are unmatched delims to avoid noisy diagnostics From rust-lang#104012 (comment) r? `@petrochenkov`
…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
…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.
…elims, r=compiler-errors Remove unclosed_delims from parser After landing rust-lang#108297 we could remove `unclosed_delims` from the parser now.
…elims, r=compiler-errors Remove unclosed_delims from parser After landing rust-lang#108297 we could remove `unclosed_delims` from the parser now.
From #104012 (comment)
r? @petrochenkov