-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Emit suggestion when trying to write exclusive ranges as ..<
#119342
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
1099544
to
cad571a
Compare
r? compiler |
.iter() | ||
.map(|x| TokenType::Token(x.clone())) | ||
.chain(inedible.iter().map(|x| TokenType::Token(x.clone()))), | ||
); |
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.
This is necessary because otherwise token::Gt
won't show up in expected_tokens
when we check for it when emitting the diagnostic.
☔ The latest upstream changes (presumably #119407) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #119606) made this pull request unmergeable. Please resolve the merge conflicts. |
…iaskrgr Rollup of 12 pull requests Successful merges: - rust-lang#103522 (stabilise array methods) - rust-lang#113489 (impl `From<&[T; N]>` for `Cow<[T]>`) - rust-lang#119342 (Emit suggestion when trying to write exclusive ranges as `..<`) - rust-lang#119562 (Rename `pointer` field on `Pin`) - rust-lang#119800 (Document `rustc_index::vec::IndexVec`) - rust-lang#120205 (std: make `HEAP` initializer never inline) - rust-lang#120277 (Normalize field types before checking validity) - rust-lang#120311 (core: add `From<core::ascii::Char>` implementations) - rust-lang#120366 (mark a doctest with UB as no_run) - rust-lang#120378 (always normalize `LoweredTy` in the new solver) - rust-lang#120382 (Classify closure arguments in refutable pattern in argument error) - rust-lang#120389 (Add fmease to the compiler review rotation) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#119342 - sjwang05:issue-112254, r=wesleywiser Emit suggestion when trying to write exclusive ranges as `..<` Closes rust-lang#112254
Closes #112254