Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs
This commit is contained in:
parent
a20421734b
commit
c567eddec2
91 changed files with 579 additions and 101 deletions
|
@ -719,6 +719,11 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
ty::ClosureKind::FnMut => {}
|
||||
ty::ClosureKind::FnOnce => return succ,
|
||||
},
|
||||
ty::CoroutineClosure(_def_id, args) => match args.as_coroutine_closure().kind() {
|
||||
ty::ClosureKind::Fn => {}
|
||||
ty::ClosureKind::FnMut => {}
|
||||
ty::ClosureKind::FnOnce => return succ,
|
||||
},
|
||||
ty::Coroutine(..) => return succ,
|
||||
_ => {
|
||||
span_bug!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue