Uh oh!
There was an error while loading. Please reload this page.
Always include a position span in rustc_parse_format::Argument - #99987
Merged
Conversation
rustbot
commented
Jul 31, 2022
Collaborator
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
rust-highfive
commented
Jul 31, 2022
Contributor
r? @fee1-dead (rust-highfive has picked a reviewer for you, use r? to override) |
rust-log-analyzer
commented
Jul 31, 2022
Collaborator
The job Click to see the possible cause of the failure (guessed by this bot) |
Alexendoo
commented
Jul 31, 2022
MemberAuthor
Looks spurious, I hit re-run |
Contributor
cc @PrestonFrom, you may or may not care about this but it's code you've recently touched |
PrestonFrom
commented
Jul 31, 2022
Contributor
Looks like a good change. Curious is adding the span to position instead of argument makes sense? |
Alexendoo
commented
Jul 31, 2022
MemberAuthor
I moved it up into |
PrestonFrom
commented
Jul 31, 2022
Contributor
That makes sense to me! |
fee1-dead
commented
Aug 2, 2022
Member
@bors r+ |
bors
commented
Aug 2, 2022
Collaborator
Dylan-DPC added a commit
to Dylan-DPC/rust
that referenced
this pull request
Aug 2, 2022
…n, r=fee1-dead Always include a position span in `rustc_parse_format::Argument` Moves the spans from the `Position` enum to always be included in the `Argument` struct. Doesn't make any changes to use it in rustc, but it will be useful for some upcoming Clippy lints
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
Aug 2, 2022
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#99987 (Always include a position span in `rustc_parse_format::Argument`) - rust-lang#100005 (Remove Clean trait for ast::Attribute and improve Attributes::from_ast) - rust-lang#100025 (Remove redundant `TransferWrapper` struct) - rust-lang#100045 (Properly reject the `may_unwind` option in `global_asm!`) - rust-lang#100052 (RISC-V ASM test: relax label name constraint.) - rust-lang#100053 (move [`assertions_on_result_states`] to restriction) - rust-lang#100057 (Remove more Clean trait implementations) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
flip1995 pushed a commit
to flip1995/rust
that referenced
this pull request
Aug 11, 2022
…n, r=fee1-dead Always include a position span in `rustc_parse_format::Argument` Moves the spans from the `Position` enum to always be included in the `Argument` struct. Doesn't make any changes to use it in rustc, but it will be useful for some upcoming Clippy lints
Dylan-DPC added a commit
to Dylan-DPC/rust
that referenced
this pull request
Aug 23, 2022
…fee1-dead
Fix rustc_parse_format precision & width spans
When a `precision`/`width` was `CountIsName - {:name$}` or `CountIs - {:10}` the `precision_span`/`width_span` was set to `None`
For `width` the name span in `CountIsName(_, name_span)` had its `.start` off by one
r? `@fee1-dead` / cc `@PrestonFrom` since this is similar to rust-lang#99987Dylan-DPC added a commit
to Dylan-DPC/rust
that referenced
this pull request
Aug 23, 2022
…fee1-dead
Fix rustc_parse_format precision & width spans
When a `precision`/`width` was `CountIsName - {:name$}` or `CountIs - {:10}` the `precision_span`/`width_span` was set to `None`
For `width` the name span in `CountIsName(_, name_span)` had its `.start` off by one
r? ``@fee1-dead`` / cc ``@PrestonFrom`` since this is similar to rust-lang#99987
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 freeto 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.
Moves the spans from the
Positionenum to always be included in theArgumentstruct. Doesn't make any changes to use it in rustc, but it will be useful for some upcoming Clippy lints