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`.
This commit is contained in:
parent
7faebe57b2
commit
9f70e782f7
5 changed files with 0 additions and 6 deletions
|
@ -184,7 +184,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
this.lower_closure_capture(block, capture_index, *upvar_id)
|
||||
}
|
||||
|
||||
ExprKind::SelfRef => block.and(PlaceBuilder::from(Local::new(1))),
|
||||
ExprKind::VarRef { id } => {
|
||||
let place_builder = if this.is_bound_var_in_guard(id) {
|
||||
let index = this.var_local_id(id, RefWithinGuard);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue