diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-23 15:57:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 15:57:11 +0200 |
| commit | 61fbc6a394e00778876a5776db27a5e58231f67b (patch) | |
| tree | e891819b31ad998317320c021a41fecb9a807e0f /src/test/incremental/thinlto | |
| parent | 66f7a5d92f5adb9053bf66e0bf8f6d31d404870d (diff) | |
| parent | 415fd0cc1a9bb902a2b4a22669debac74373cf67 (diff) | |
| download | rust-61fbc6a394e00778876a5776db27a5e58231f67b.tar.gz rust-61fbc6a394e00778876a5776db27a5e58231f67b.zip | |
Rollup merge of #71005 - jonas-schievink:no-place-like-return, r=oli-obk
Reading from the return place is fine Const eval thinks that reading from local `_0` is UB, but it isn't. `_0` is just a normal local like any other, and codegen handles it that way too. The only special thing is that the `Return` terminator will read from it. I've hit these errors while working on an NRVO pass that can merge other locals with `_0` in https://github.com/rust-lang/rust/pull/71003. r? @oli-obk
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
