Conversation
|
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
|
Nice improvements! @bors r+ rollup |
|
|
||
| fn diff_marker(&mut self, long_kind: &TokenKind, short_kind: &TokenKind) -> Option<Span> { | ||
| if self.is_diff_marker(long_kind, short_kind) { | ||
| fn git_diff_marker(&mut self, long_kind: &TokenKind, short_kind: &TokenKind) -> Option<Span> { |
There was a problem hiding this comment.
If I remember correctly it was intentional to not mention git here. I'd need to look for the original PRs. CC @estebank
There was a problem hiding this comment.
Indeed, diff markers are used by git, but not exclusive to it.
|
Sorry but the markdown docs are butchered. |
|
Thanks for noticing! @rustbot ready |
|
Thanks. One last thing, could you squash the commits into one? |
|
All of them or just the "applied suggestions" one? If all with what name? |
|
Eh, I guess git-fixup the “apply suggs” commit into 9db789a should be fine |
444d380 to
f1b404c
Compare
|
@rustbot ready |
As far as I'm aware, conflict markers (the I think now might be the best time to rename [git] diff marker to conflict markers which is the more appropriate term as touched upon in #113826. If you could do that in this PR, that would be great! Diff markers are |
|
Maybe vcs_conflict_marker then? |
I guess that's fine, yes. From a purist / theoretical point of view, these conflict markers not necessarily tied to VCSs but to be fair, in practice, that shouldn't matter. CC https://www.gnu.org/software/diffutils/, https://www.geeksforgeeks.org/diff3-command-in-linux-with-examples/ (^^') |
conflicts specifically and a few more improvements.
f1b404c to
f8433a8
Compare
|
@rustbot ready Question about the review: I rebased edit the specific commit with the fix. Should I have made the fix commit and made the fixup rebase after you approve so that it's easier to review? |
| /// * `>>>>>` | ||
| /// * `=====` | ||
| /// * `<<<<<` | ||
| /// |
There was a problem hiding this comment.
| /// * `>>>>>` | |
| /// * `=====` | |
| /// * `<<<<<` | |
| /// | |
| /// * `>>>>>` | |
| /// * `|||||` | |
| /// * `=====` | |
| /// * `<<<<<` |
| } | ||
| if self.is_diff_marker(&TokenKind::BinOp(token::Shl), &TokenKind::Lt) { | ||
| if self.is_vcs_conflict_marker(&TokenKind::BinOp(token::Shl), &TokenKind::Lt) { | ||
| // Account for `<<<<<<<` diff markers. We can't proactively error here because |
There was a problem hiding this comment.
| // Account for `<<<<<<<` diff markers. We can't proactively error here because | |
| // Account for `<<<<<<<` conflict markers. We can't proactively error here because |
|
@bors r=wesleywiser,fmease rollup |
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#125117 (Improve parser) - rust-lang#125184 (Fix ICE in non-operand `aggregate_raw_ptr` intrinsic codegen) - rust-lang#125240 (Temporarily revert to NonZeroUsize in rustc-abi to fix building on stable) - rust-lang#125248 (Migrate `run-make/rustdoc-scrape-examples-invalid-expr` to `rmake.rs`) r? `@ghost` `@rustbot` modify labels: rollup
This comment was marked as outdated.
This comment was marked as outdated.
Rollup merge of rust-lang#125117 - dev-ardi:improve-parser, r=wesleywiser,fmease Improve parser Fixes rust-lang#124935. - Add a few more help diagnostics to incorrect semicolons - Overall improved that function - Addded a few comments - Renamed diff_marker fns to git_diff_marker
Fix parsing of erroneously placed semicolons This closes rust-lang#124935, is a continuation of rust-lang#125245 after rebasing rust-lang#125117. Thanks `@gurry` for your code and sorry for making it confusing :P r? fmease
Fix parsing of erroneously placed semicolons This closes rust-lang#124935, is a continuation of rust-lang#125245 after rebasing rust-lang#125117. Thanks ``@gurry`` for your code and sorry for making it confusing :P r? fmease
Fix parsing of erroneously placed semicolons This closes rust-lang#124935, is a continuation of rust-lang#125245 after rebasing rust-lang#125117. Thanks ```@gurry``` for your code and sorry for making it confusing :P r? fmease
Rollup merge of rust-lang#125276 - dev-ardi:no-main-diag, r=fmease Fix parsing of erroneously placed semicolons This closes rust-lang#124935, is a continuation of rust-lang#125245 after rebasing rust-lang#125117. Thanks ```@gurry``` for your code and sorry for making it confusing :P r? fmease
Uh oh!
There was an error while loading. Please reload this page.