Uh oh!
There was an error while loading. Please reload this page.
Also generate StorageDead in constants - #78679
Conversation
oli-obk
commented
Nov 2, 2020
cc @rust-lang/wg-const-eval |
oli-obk
commented
Nov 2, 2020
@bors try @rust-timer queue |
rust-timer
commented
Nov 2, 2020
Awaiting bors try build completion |
bors
commented
Nov 2, 2020
⌛ Trying commit 3f2f0dc383a6facaa1d64a21a8923d39943cc2ef with merge 0ccb4b9b8cc4437f530995e70c33db2fa684fc81... |
bors
commented
Nov 2, 2020
☀️ Try build successful - checks-actions |
rust-timer
commented
Nov 2, 2020
Queued 0ccb4b9b8cc4437f530995e70c33db2fa684fc81 with parent 338f939, future comparison URL. |
rust-timer
commented
Nov 2, 2020
Finished benchmarking try commit (0ccb4b9b8cc4437f530995e70c33db2fa684fc81): 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 |
RalfJung
commented
Nov 7, 2020
Looks like we have a 5% regression in a stress test and a 1.5% regression on "ucd". |
There was a problem hiding this comment.
This comment was copied from here (as part of #52405's c3dbdfe):
rust/src/librustc_mir/build/expr/as_temp.rs
Lines 61 to 68 in c3dbdfe
This is the current version, updated in (your) #56127:
rust/compiler/rustc_mir_build/src/build/expr/as_temp.rs
Lines 98 to 113 in e0ef0fc
If we don't want to copy the comment (which is pretty long), we could at least point to the other one?
Or if that's not applicable, it could still mention as_temp but say that the same situation does not arise for what's handled here.
Uh oh!
There was an error while loading. Please reload this page.
eddyb
commented
Nov 17, 2020
I think this is strictly "more correct", even if less efficient. r=me if you want to land it as-is (modulo that one comment) but it might be prudent to wait for more opinions from @rust-lang/compiler. |
nikomatsakis
commented
Nov 19, 2020
I'm in favor of removing the special casing |
oli-obk
commented
Dec 9, 2020
@bors r=eddyb |
bors
commented
Dec 9, 2020
📌 Commit 84fe7cf has been approved by |
bors
commented
Dec 9, 2020
bors
commented
Dec 9, 2020
☀️ Test successful - checks-actions |
r? @eddyb
None of this special casing is actually necessary since we started promoting within constants and statics.
We may want to keep some of it around out of perf reasons, but it's not required for user visible behaviour
somewhat related: #68622