-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use derivative for Clone
/PartialOrd
/Ord
/Hash
in rustc_type_ir
#117407
Conversation
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. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Use derivative for `Clone` in `rustc_type_ir` r? `@ghost` splitting this out for perf...
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
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_ir
Clone
/PartialOrd
/Ord
/Hash
in rustc_type_ir
58dcf53
to
8b4fa0f
Compare
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ironically "feature_allow_slow_enum" wasn't even the cause for the slowness: #117409 (comment)
🎉 @bors r+ |
☀️ Test successful - checks-actions |
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
derivative
to deriveClone
/PartialOrd
/Ord
/Hash
for types inrustc_type_ir
. This doesn't derivePartialEq
/Eq
yet, because I have no idea why those are generating slower implementations from derivative.