]> git.lizzy.rs Git - rust.git/commit
Remove THIR::ExprKind::SelfRef
authorAman Arora <me@aman-arora.com>
Tue, 17 Nov 2020 09:54:10 +0000 (04:54 -0500)
committerAman Arora <me@aman-arora.com>
Tue, 17 Nov 2020 22:49:42 +0000 (17:49 -0500)
commit9f70e782f7ee7c67c4ea693639c0e87b984d0234
treebba71f272cc3b546402fcbd0f6850661d1f2c4d9
parent7faebe57b27f3005b5da8666bf02660b21fef4e2
Remove THIR::ExprKind::SelfRef

ExprKind::SelfRef was used to express accessing `self` in
the desugared Closure/Generator struct when lowering captures in THIR.

Since we handle captures in MIR now, we don't need `ExprKind::Self`.
compiler/rustc_mir_build/src/build/expr/as_place.rs
compiler/rustc_mir_build/src/build/expr/as_rvalue.rs
compiler/rustc_mir_build/src/build/expr/category.rs
compiler/rustc_mir_build/src/build/expr/into.rs
compiler/rustc_mir_build/src/thir/mod.rs