Adds support for immovable generators. Move checking of invalid borrows across suspension points to borrowck. Fixes #44197, #45259 and #45093.
This commit is contained in:
parent
47a8eb7c4e
commit
ccf0d8399e
60 changed files with 863 additions and 213 deletions
|
|
@ -2314,6 +2314,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
|
|||
|
||||
ty::TyClosure(..) | ty::TyGenerator(..) => Tuple(vec![]), // FIXME(pcwalton)
|
||||
|
||||
ty::TyGeneratorWitness(..) => panic!("TyGeneratorWitness"),
|
||||
ty::TyInfer(..) => panic!("TyInfer"),
|
||||
ty::TyError => panic!("TyError"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue