Emit suggestion when trying to write exclusive ranges as ..<#119342
Merged
bors merged 1 commit intorust-lang:masterfrom Jan 27, 2024
Merged
Emit suggestion when trying to write exclusive ranges as ..<#119342bors merged 1 commit intorust-lang:masterfrom
..<#119342bors merged 1 commit intorust-lang:masterfrom
Conversation
Collaborator
|
(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
Contributor
|
r? compiler |
sjwang05
commented
Dec 27, 2023
| .iter() | ||
| .map(|x| TokenType::Token(x.clone())) | ||
| .chain(inedible.iter().map(|x| TokenType::Token(x.clone()))), | ||
| ); |
Contributor
Author
There was a problem hiding this comment.
This is necessary because otherwise token::Gt won't show up in expected_tokens when we check for it when emitting the diagnostic.
Collaborator
|
☔ The latest upstream changes (presumably #119407) made this pull request unmergeable. Please resolve the merge conflicts. |
Collaborator
|
☔ The latest upstream changes (presumably #119606) made this pull request unmergeable. Please resolve the merge conflicts. |
wesleywiser
approved these changes
Jan 26, 2024
Member
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jan 27, 2024
…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
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jan 27, 2024
Rollup merge of rust-lang#119342 - sjwang05:issue-112254, r=wesleywiser Emit suggestion when trying to write exclusive ranges as `..<` Closes rust-lang#112254
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.
Closes #112254