Rework lint pass running#158239
Conversation
It's a bad name: long, and contains a negative. `skippable_lints` is better.
In particular, `late_lint_mod` doesn't filter consistently: it only checks if `builtin_lints` needs running in the `passes.is_empty()` case, and it doesn't check if the other passes need running at all.
It's called in two cases: pre-expansion lists, and early lints. The appropriate builtin pass is specified at the call site but the appropriate other passes are chosen within, which is inconsistent. This commit changes it so everything is chosen within, based on the boolean `pre_expansion_lint` parameter. `check_ast_node_inner` is split into `run_passes` and `run_pass`; the extra function is needed because the genericness of `builtin_lints` is pushed down one level below `check_ast_node`.
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt
cc @rust-lang/clippy |
|
@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.
Rework lint pass running
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (9309619): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing 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 (secondary -3.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -3.0%)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: 512.761s -> 504.991s (-1.52%) |
|
I have added a new commit renaming |
This comment has been minimized.
This comment has been minimized.
09591e3 to
2724e23
Compare
|
@bors r+ |
|
@bors p=6 threading between rollups |
Rework lint pass running Some cleanups relating to the running of lint passes. r? @Urgau
|
💔 Test for e9e59c9 failed: CI. Failed job:
|
|
@bors retry |
This comment has been minimized.
This comment has been minimized.
Rework lint pass running Some cleanups relating to the running of lint passes. r? @Urgau
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for d9b9b74 failed: CI. Failed job:
|
|
@bors retry |
This comment has been minimized.
This comment has been minimized.
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
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 73100ee (parent) -> 973ad0d (this PR) Test differencesShow 14 test diffs14 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 973ad0d0ab149bde2e96422833c1265c7a5be217 --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 |
|
Ninth time's the charm! |
|
(It works now because we merged a workaround disabling part of CI #158379) |
|
Finished benchmarking commit (973ad0d): comparison URL. Overall result: ✅ improvements - 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 2.0%, secondary 2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.2%)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: 505.309s -> 509.16s (0.76%) |
View all comments
Some cleanups relating to the running of lint passes.
r? @Urgau