Uh oh!
There was an error while loading. Please reload this page.
Use derivative for Clone/PartialOrd/Ord/Hash in rustc_type_ir - #117407
Conversation
rustbot
commented
Oct 30, 2023
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Third-party dependency whitelist may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
compiler-errors
commented
Oct 30, 2023
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
bors
commented
Oct 30, 2023
Use derivative for `Clone` in `rustc_type_ir` r? `@ghost` splitting this out for perf...
bors
commented
Oct 30, 2023
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Oct 30, 2023
Finished benchmarking commit (5d82b57): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 636.162s -> 636.532s (0.06%) |
Clone in rustc_type_irClone/PartialOrd/Ord/Hash in rustc_type_ir58dcf53 to
8b4fa0fComparecompiler-errors
commented
Oct 31, 2023
r? @oli-obk I split this out from the |
| #[derivative( | ||
| Clone(bound = ""), | ||
| PartialOrd(bound = ""), | ||
| PartialOrd = "feature_allow_slow_enum", |
There was a problem hiding this comment.
ironically "feature_allow_slow_enum" wasn't even the cause for the slowness: #117409 (comment)
oli-obk
commented
Oct 31, 2023
🎉 @bors r+ |
bors
commented
Oct 31, 2023
bors
commented
Oct 31, 2023
bors
commented
Oct 31, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
Oct 31, 2023
Finished benchmarking commit (d7d9f15): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 636.965s -> 639.964s (0.47%) |
78: Automated pull from upstream `master` r=tshepang a=github-actions[bot] This PR pulls the following changes from the upstream repository: * rust-lang/rust#113970 * rust-lang/rust#117459 * rust-lang/rust#117451 * rust-lang/rust#117439 * rust-lang/rust#117417 * rust-lang/rust#117388 * rust-lang/rust#113241 * rust-lang/rust#117462 * rust-lang/rust#117450 * rust-lang/rust#117407 * rust-lang/rust#117444 * rust-lang/rust#117438 * rust-lang/rust#117421 * rust-lang/rust#117416 * rust-lang/rust#116712 * rust-lang/rust#116267 * rust-lang/rust#117377 * rust-lang/rust#117419 Co-authored-by: Alexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu> Co-authored-by: Esteban Küber <esteban@kuber.com.ar> Co-authored-by: David Tolnay <dtolnay@gmail.com> Co-authored-by: Celina G. Val <celinval@amazon.com> Co-authored-by: Michael Goulet <michael@errs.io> Co-authored-by: bors <bors@rust-lang.org> Co-authored-by: Camille GILLOT <gillot.camille@gmail.com> Co-authored-by: lcnr <rust@lcnr.de> Co-authored-by: Zalathar <Zalathar@users.noreply.github.com> Co-authored-by: Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
This uses
derivativeto deriveClone/PartialOrd/Ord/Hashfor types inrustc_type_ir. This doesn't derivePartialEq/Eqyet, because I have no idea why those are generating slower implementations from derivative.