even more cleanups for rustc_builtin_macros - #162925
Conversation
|
Changes to the code generated for builtin derived traits. cc @nnethercote |
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| @@ -2,15 +2,15 @@ macro-stats ==================================================================== | |||
| macro-stats MACRO EXPANSION STATS: macro_stats | |||
| macro-stats Macro Name Uses Lines Avg Lines Bytes Avg Bytes | |||
| macro-stats ----------------------------------------------------------------------------------- | |||
| macro-stats #[derive(Clone)] 8 67 8.4 1_879 234.9 | |||
| macro-stats #[derive(Clone)] 8 67 8.4 1_895 236.9 | |||
There was a problem hiding this comment.
this test shows a slight increase in size, but that is only because the types in the test all have one-or-two-letter names
|
@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.
even more cleanups for `rustc_builtin_macros`
This comment has been minimized.
This comment has been minimized.
|
@cyrgani: The |
|
Finished benchmarking commit (34797f1): 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 rustc-perf 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 -4.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.7%, secondary 22.4%)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.345s -> 497.629s (-0.14%) |
There was a problem hiding this comment.
Mostly looks good. Changing the return types to Self is particularly nice.
I'm not convinced that the "remove PathKind, use ast::Path for all local paths directly" commit is an improvement. What's the rationale? I see it removes the PathKind enum, but now some paths go via Path and some via AstTy, which is a bit confusing.
| }); | ||
| let nonself_args = | ||
| nonself_arg_tys.into_iter().map(|(name, ty)| cx.param(span, name, ty)); | ||
| let mut nonself_args = Vec::new(); |
There was a problem hiding this comment.
Instead of a Vec that is pushed onto, nonself_args could be an iter + map.
There was a problem hiding this comment.
I think that would avoid the need for the "construct args directly" commit.
There was a problem hiding this comment.
Makes sense, this is now part of the "stop passing nonself_arg_tys around" commit.
|
The motivation for removing |
c1b6f1c to
072a61a
Compare
|
Thanks! @bors r+ |
This comment has been minimized.
This comment has been minimized.
even more cleanups for `rustc_builtin_macros` Followup to #162234 with more cleanups and perf improvements.
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #163043. |
This comment has been minimized.
This comment has been minimized.
even more cleanups for `rustc_builtin_macros` try-job: test-x86_64-gnu-parallel-frontend
This comment has been minimized.
This comment has been minimized.
even more cleanups for `rustc_builtin_macros` Followup to #162234 with more cleanups and perf improvements.
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #163043. |
This comment has been minimized.
This comment has been minimized.
even more cleanups for `rustc_builtin_macros` try-job: test-various
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 12c4d3f (parent) -> bba5310 (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard bba531001d4de6d7f49693e0836a2668ca063282 --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 (bba5310): comparison URL. Overall result: ❌✅ regressions and 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.3%, secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.8%, secondary 6.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.0%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 496.862s -> 496.585s (-0.06%) |
View all comments
Followup to #162234 with more cleanups and perf improvements.