Make span_suggestions always verbose#154605
Conversation
|
Some changes occurred in tests/ui/sanitizer cc @rcvalle |
|
r? @jieyouxu rustbot has assigned @jieyouxu. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Makes sense to me, thanks.
One minor reservation I had while looking at the diffs is when the suggested snippet has placeholders, but then I still liked the verbose outline version over inline help (which is really hard to read IMO).
You can r=me after fixing CI.
@rustbot author
|
Reminder, once the PR becomes ready for a review, use |
I saw the same thing and I'm looking at improving the suggestions to be more targeted for cases like those and rely on the "suggestion for full replacement" only as a fallback. |
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
@bors r=jieyouxu |
This comment has been minimized.
This comment has been minimized.
Rollup of 6 pull requests Successful merges: - #154696 (rustdoc_missing_doc_code_examples: lint on macro_rules macros) - #154698 (Improve workings of the `desc` query modifier and custom query cycle handlers) - #154713 (Stop compiling when we get resolving crate failure) - #154736 (Add a regression test for the duplicated `crate` keyword in path suggestions) - #154739 (ci: update upload-artifact action to v7) - #154741 (Enforce `#![warn(unreachable_pub)]` in compiletest source) Failed merges: - #154605 (Make `span_suggestions` always verbose)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
(Very conflict-prone) |
|
@bors rollup=iffy (or maybe never) |
`span_suggestions` is to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=jieyouxu rollup=never |
This comment has been minimized.
This comment has been minimized.
Make `span_suggestions` always verbose `span_suggestions` is to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for 7e37fca failed: CI. Failed job:
|
@bors retry p=1 (conflict-prone) |
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 e8e4541 (parent) -> 18b439f (this PR) Test differencesShow 2 test diffs2 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 18b439f84ec0b087283bac3356a1eeac53c60c5e --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 (18b439f): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression 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 3.9%, secondary 0.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 0.7%)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: 490.756s -> 492.463s (0.35%) |
View all comments
span_suggestionsis to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.