]> git.lizzy.rs Git - rust.git/commit
optimize `let x: T = ..` to avoid a temporary
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 5 Sep 2018 20:23:45 +0000 (16:23 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Mon, 10 Sep 2018 12:28:56 +0000 (08:28 -0400)
commit2f6628ecec60afd4b6a797a9e193f9a02d395924
tree323a4dd19eca44d8f8807c28b9e72b9c36704e28
parent16f4e8ac1d625c74e9711857afae4dac7fcf36e1
optimize `let x: T = ..` to avoid a temporary

For some weird reason this fixes `intrinsic-move-val`. It also affects
various test heuristics. I removed one test (`reborrow_basic`) that
didn't seem to really be testing anything in particular anymore,
compared to all the other tests we've got.
12 files changed:
src/librustc_mir/build/matches/mod.rs
src/test/mir-opt/basic_assignment.rs
src/test/mir-opt/nll/reborrow-basic.rs [deleted file]
src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.nll.stderr
src/test/ui/borrowck/borrowck-access-permissions.ast.nll.stderr
src/test/ui/borrowck/borrowck-access-permissions.mir.stderr
src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.rs
src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.stderr
src/test/ui/nll/relate_tys/universe-violation.stderr
src/test/ui/regions/region-object-lifetime-in-coercion.nll.stderr
src/test/ui/slice-mut-2.nll.stderr
src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.nll.stderr