]> git.lizzy.rs Git - rust.git/commit
Move handling UpvarRef to PlaceBuilder
authorAman Arora <me@aman-arora.com>
Thu, 19 Nov 2020 03:54:31 +0000 (22:54 -0500)
committerAman Arora <me@aman-arora.com>
Sun, 6 Dec 2020 23:30:23 +0000 (18:30 -0500)
commitd9523622ff68e9a91d9cc6b225dc479d7cc8f0c7
tree784c6b29092ca702c483bbf87e7fb6c91ea2d1c7
parent6e5cca79fcaaa80fbaaa23ba9f9c806f2ae8f41e
Move handling UpvarRef to PlaceBuilder

- This allows us to delay figuring out the index of a capture
  in the closure structure when all projections to atleast form
  a capture have been applied to the builder

Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
compiler/rustc_mir_build/src/build/expr/as_place.rs