Validate source snippet when format input is raw string#152277
Validate source snippet when format input is raw string#152277rust-bors[bot] merged 5 commits intorust-lang:mainfrom
Conversation
70647fa to
4483628
Compare
|
r? @TaKO8Ki rustbot has assigned @TaKO8Ki. Use Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
Thank you. I found another related ICE while reviewing the PR, so if possible, could you take a look at fixing that as well?
The implementation might have a somewhat broader impact, so I’d like to review it more carefully on my side. Please give me a little more time.
No worries. Please take your time. I'll fix the second ICE in the meanwhile. |
a1cee4e to
42a2960
Compare
42a2960 to
6b3d04e
Compare
|
@bors try jobs=x86_64-gnu |
This comment has been minimized.
This comment has been minimized.
Validate source snippet when format input is raw string try-job: x86_64-gnu
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Validate source snippet when format input is raw string
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (0421599): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 492.161s -> 479.296s (-2.61%) |
|
@TaKO8Ki Please have another look |
|
Sorry, I completely overlooked this PR. Given my current review capacity, I’m going to reroll it. @rustbot reroll |
|
|
Thanks! |
|
@bors rollup |
…enyukang Validate source snippet when format input is raw string Fixes rust-lang#114865 The issue occurred because the user's proc macro respanned the format arg to an unrelated multi-byte string and we ICE'd by landing in the middle of a multi-byte char. This PR adds validation that prevents the parser from trying to walk such obviously wrong snippets. Such validation already existed for non-raw strings. This PR adds it for raw strings as well.
…enyukang Validate source snippet when format input is raw string Fixes rust-lang#114865 The issue occurred because the user's proc macro respanned the format arg to an unrelated multi-byte string and we ICE'd by landing in the middle of a multi-byte char. This PR adds validation that prevents the parser from trying to walk such obviously wrong snippets. Such validation already existed for non-raw strings. This PR adds it for raw strings as well.
…uwer Rollup of 5 pull requests Successful merges: - #152277 (Validate source snippet when format input is raw string) - #155940 (refactor rustc_on_unimplemented's filtering) - #156065 (Remove unused spans from AttributeKind) - #156079 (Move and rename the `clone-never.rs` test) - #156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing a3e96d8 (parent) -> 44860d3 (this PR) Test differencesShow 4 test diffsStage 1
Stage 2
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 44860d3e9ef700cac0b4a61d924f41f46bf1b447 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (44860d3): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (secondary 5.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 498.188s -> 495.993s (-0.44%) |
View all comments
Fixes #114865
The issue occurred because the user's proc macro respanned the format arg to an unrelated multi-byte string and we ICE'd by landing in the middle of a multi-byte char.
This PR adds validation that prevents the parser from trying to walk such obviously wrong snippets. Such validation already existed for non-raw strings. This PR adds it for raw strings as well.