Uh oh!
There was an error while loading. Please reload this page.
cache types during normalization - #76928
Conversation
lcnr
commented
Sep 19, 2020
@bors try @rust-timer queue |
rust-timer
commented
Sep 19, 2020
Awaiting bors try build completion |
bors
commented
Sep 19, 2020
⌛ Trying commit 1146c39 with merge 88f354df8a313170036daa0e4156f8e75242ebd6... |
Mark-Simulacrum
commented
Sep 19, 2020
We'll want to trim it down so that it takes around a second at most on current nightly, but yes adding it definitely seems good to me. |
bors
commented
Sep 19, 2020
☀️ Try build successful - checks-actions, checks-azure |
rust-timer
commented
Sep 19, 2020
Queued 88f354df8a313170036daa0e4156f8e75242ebd6 with parent 8e9d5db, future comparison URL. |
rust-timer
commented
Sep 19, 2020
Finished benchmarking try commit (88f354df8a313170036daa0e4156f8e75242ebd6): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
lcnr
commented
Sep 19, 2020
looks mostly neutral, I guess this is ready for review |
eddyb
commented
Sep 20, 2020
tmandry
commented
Sep 22, 2020
Other than perf (which looks neutral to positive for existing cases), the only possible side effects I see here are
Which all seem like a good thing! +1 to adding a case to rustc-perf. I don't think we have to wait on that to merge this, though. @bors r+ |
bors
commented
Sep 22, 2020
📌 Commit 1146c39 has been approved by |
bors
commented
Sep 22, 2020
bors
commented
Sep 23, 2020
☀️ Test successful - checks-actions, checks-azure |
Mark-Simulacrum
commented
Oct 3, 2020
Along the lines of #72412 (comment), I am nominating this for beta backport. Would someone on the compiler team be willing to approve this? See rationale laid out in that comment. |
Mark-Simulacrum
commented
Oct 3, 2020
@rust-lang/compiler -- cc on the previous comment, this needs to be beta-approved to go out in the release next week. See rationale in #72412 (comment). |
…k-Simulacrum [beta] backports This backports a number of PRs to beta, not all of which have been approved (yet). * Switch to environment files to change the environment on GHA rust-lang#77418 * cache types during normalization rust-lang#76928 * Fixing memory exhaustion when formatting short code suggestion rust-lang#76598 * Issue 72408 nested closures exponential rust-lang#72412 r? `@Mark-Simulacrum`
| let ty = ty.super_fold_with(self); | ||
| match *ty.kind() { | ||
| let res = (|| match *ty.kind() { |
There was a problem hiding this comment.
is this just for outlining?
There was a problem hiding this comment.
this is mostly so we don't accidentally return here. I kind of like this pattern myself but I do think that it can be somewhat counterintuitive
There was a problem hiding this comment.
When using a counterintuitive pattern, please add a comment explaining it. :)
partially fixes#75992
reduces the following test from 14 to 3 seconds locally.
cc @Mark-Simulacrum would it make sense to add that test to
perf?r? @eddyb requires a perf run.