docs
This commit is contained in:
parent
0aaad9e757
commit
4c197c0319
@ -506,6 +506,9 @@ impl<'tcx, T: TypeVisitable<'tcx>> TypeVisitable<'tcx> for &'tcx ty::List<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Similar to [`Binder`] except that it tracks early bound generics, i.e. `struct Foo<T>(T)`
|
||||||
|
/// needs `T` substituted immediately. This type primarily exists to avoid forgetting to call
|
||||||
|
/// `subst`.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||||
#[derive(Encodable, Decodable, HashStable)]
|
#[derive(Encodable, Decodable, HashStable)]
|
||||||
pub struct EarlyBinder<T>(pub T);
|
pub struct EarlyBinder<T>(pub T);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user