Yeet PolyGenSig
This commit is contained in:
parent
f32d29837d
commit
1ec3ef7d81
6 changed files with 65 additions and 85 deletions
|
@ -98,9 +98,8 @@ pub use self::sty::{
|
|||
CoroutineArgs, CoroutineArgsParts, EarlyParamRegion, ExistentialPredicate,
|
||||
ExistentialProjection, ExistentialTraitRef, FnSig, GenSig, InlineConstArgs,
|
||||
InlineConstArgsParts, LateParamRegion, ParamConst, ParamTy, PolyExistentialPredicate,
|
||||
PolyExistentialProjection, PolyExistentialTraitRef, PolyFnSig, PolyGenSig, PolyTraitRef,
|
||||
PredicateKind, Region, RegionKind, RegionVid, TraitRef, TyKind, TypeAndMut, UpvarArgs,
|
||||
VarianceDiagInfo,
|
||||
PolyExistentialProjection, PolyExistentialTraitRef, PolyFnSig, PolyTraitRef, PredicateKind,
|
||||
Region, RegionKind, RegionVid, TraitRef, TyKind, TypeAndMut, UpvarArgs, VarianceDiagInfo,
|
||||
};
|
||||
pub use self::trait_def::TraitDef;
|
||||
pub use self::typeck_results::{
|
||||
|
|
|
@ -468,16 +468,6 @@ impl<'tcx> CoroutineArgs<'tcx> {
|
|||
self.split().return_ty.expect_ty()
|
||||
}
|
||||
|
||||
/// Returns the "coroutine signature", which consists of its yield
|
||||
/// and return types.
|
||||
///
|
||||
/// N.B., some bits of the code prefers to see this wrapped in a
|
||||
/// binder, but it never contains bound regions. Probably this
|
||||
/// function should be removed.
|
||||
pub fn poly_sig(self) -> PolyGenSig<'tcx> {
|
||||
ty::Binder::dummy(self.sig())
|
||||
}
|
||||
|
||||
/// Returns the "coroutine signature", which consists of its resume, yield
|
||||
/// and return types.
|
||||
pub fn sig(self) -> GenSig<'tcx> {
|
||||
|
@ -1352,8 +1342,6 @@ pub struct GenSig<'tcx> {
|
|||
pub return_ty: Ty<'tcx>,
|
||||
}
|
||||
|
||||
pub type PolyGenSig<'tcx> = Binder<'tcx, GenSig<'tcx>>;
|
||||
|
||||
/// Signature of a function type, which we have arbitrarily
|
||||
/// decided to use to refer to the input/output types.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue