-
Notifications
You must be signed in to change notification settings - Fork 13.3k
compiletest: Make diagnostic kind mandatory on line annotations (take 2) #139720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MCP: rust-lang/compiler-team#862, waiting on compiler team. |
Most of the diff is due to updated |
Some changes occurred in src/tools/compiletest cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const ui tets changes LGTM, except that the PR also removes some colons which caught me by surprise as it wasn't mentioned... but if we will unify the colon vs no-colon style soon anyway, it doesn't really matter.
This is accidental, this PR was converted from #139427 which had some colon changes, and I tried to revert all of them, but apparently missed some. If some more are found during review I'll revert them too. |
This comment was marked as resolved.
This comment was marked as resolved.
would be nice if this also updated rustc-dev-guide |
I'll update, I was waiting for #139618 to land first. |
10 days since rust-lang/compiler-team#862 (comment) have passed. |
Reminder, once the PR becomes ready for a review, use |
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
@bors r=jieyouxu |
compiletest: Make diagnostic kind mandatory on line annotations (take 2) Compiletest currently accepts line annotations without kind in UI tests. ``` let a = b + c; //~ my message ``` Such annotations have two effects. - First, they match any compiler-produced diagnostic kind. This functionality is never used in practice, there are no target-dependent diagnostic kinds of something like that. - Second, they are not "viral". For example, any explicit `//~ NOTE my msg` in a test requires all other `NOTE` diagnostics in the same test to be annotated. Implicit `//~ my msg` will just match the note and won't require other annotations. The second functionality has a replacement since recently - directive `//@ dont-require-annotations: NOTE`. This PR removes support for `//~ my message` and makes the explicit diagnostic kind mandatory. Unwanted additional annotations are suppressed using the `dont-require-annotations` directive. Closes rust-lang/compiler-team#862. Previous attempt - rust-lang#139427. r? `@jieyouxu`
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
Right, some tests are gated behind certain availabilities. |
@bors r=jieyouxu |
☀️ Test successful - checks-actions |
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 427288b (parent) -> d2eadb7 (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 --output-dir test-dashboard And 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 (d2eadb7): comparison URL. Overall result: ❌ regressions - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary 0.3%, secondary -0.4%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (primary 0.6%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResults (primary 1.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 770.662s -> 770.233s (-0.06%) |
This doesn't touch compiler, should just be noise |
Yeah, it's a new benchmark that doesn't have noise threshold set properly yet. @rustbot label: +perf-regression-triaged |
Compiletest currently accepts line annotations without kind in UI tests.
Such annotations have two effects.
//~ NOTE my msg
in a test requires all otherNOTE
diagnostics in the same test to be annotated. Implicit//~ my msg
will just match the note and won't require other annotations.The second functionality has a replacement since recently - directive
//@ dont-require-annotations: NOTE
.This PR removes support for
//~ my message
and makes the explicit diagnostic kind mandatory.Unwanted additional annotations are suppressed using the
dont-require-annotations
directive.Closes rust-lang/compiler-team#862.
Previous attempt - #139427.
r? @jieyouxu