Add #[derive(TypeVisitable)]
This commit is contained in:
parent
bca894909c
commit
e4b9625b87
31 changed files with 183 additions and 221 deletions
|
@ -318,7 +318,7 @@ pub struct InferCtxt<'a, 'tcx> {
|
|||
}
|
||||
|
||||
/// See the `error_reporting` module for more details.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, TypeFoldable)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, TypeFoldable, TypeVisitable)]
|
||||
pub enum ValuePairs<'tcx> {
|
||||
Regions(ExpectedFound<ty::Region<'tcx>>),
|
||||
Terms(ExpectedFound<ty::Term<'tcx>>),
|
||||
|
|
|
@ -165,7 +165,7 @@ pub struct Verify<'tcx> {
|
|||
pub bound: VerifyBound<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, TypeFoldable)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, TypeFoldable, TypeVisitable)]
|
||||
pub enum GenericKind<'tcx> {
|
||||
Param(ty::ParamTy),
|
||||
Projection(ty::ProjectionTy<'tcx>),
|
||||
|
@ -272,7 +272,7 @@ pub enum VerifyBound<'tcx> {
|
|||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[derive(Debug, Copy, Clone, TypeFoldable)]
|
||||
#[derive(Debug, Copy, Clone, TypeFoldable, TypeVisitable)]
|
||||
pub struct VerifyIfEq<'tcx> {
|
||||
/// Type which must match the generic `G`
|
||||
pub ty: Ty<'tcx>,
|
||||
|
|
|
@ -20,7 +20,7 @@ pub struct MismatchedProjectionTypes<'tcx> {
|
|||
pub err: ty::error::TypeError<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Clone, TypeFoldable)]
|
||||
#[derive(Clone, TypeFoldable, TypeVisitable)]
|
||||
pub struct Normalized<'tcx, T> {
|
||||
pub value: T,
|
||||
pub obligations: Vec<PredicateObligation<'tcx>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue