outline unreachable! from Clause::kind - #163657
panstromek wants to merge 1 commit into
Conversation
|
@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.
outline unreachable! from Clause::kind
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (2660fea): 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 (secondary 3.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.4%, secondary 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: 491.121s -> 490.2s (-0.19%) |
|
r? @oli-obk rustbot has assigned @oli-obk. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
This is not as good as |
| } | ||
|
|
||
| pub fn kind(self) -> ty::Binder<'tcx, ClauseKind<'tcx>> { | ||
| #[cold] |
There was a problem hiding this comment.
can you put a comment here referencing this perf run, r=me after
There was a problem hiding this comment.
Done, thanks ;) but I don't have r+ rights to approve this
a5d2421 to
1a98b21
Compare
This comment has been minimized.
This comment has been minimized.
unreachable!() expands to panic("internal error: entered unreachable code"), which makes the happy path perform worse than plain argument-less call.
1a98b21 to
22f30e6
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ rollup=never |
Safe alternative to #163639.
unreachable!()expands topanic("internal error: entered unreachable code"), which we've seen before to be worse than plain argument-less call in other hot places.see https://rust-lang.zulipchat.com/#narrow/channel/247081-t-compiler.2Fperformance/topic/needs.20help.3A.20small.20perf.20improvement.20with.20non-local.20reasoning/with/628660586