diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-15 18:19:52 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-18 08:41:28 +0100 |
| commit | 033d1df19b3835c184dabfa1c7cab42337fa36b6 (patch) | |
| tree | 84fade608bf268deecd674005c1cd154bdfee9f3 /src/librustc/ty/structural_impls.rs | |
| parent | 2add2075dee5308e6cf4991aabe446c4ab313397 (diff) | |
Retire BraceStructLiftImpl.
Diffstat (limited to 'src/librustc/ty/structural_impls.rs')
| -rw-r--r-- | src/librustc/ty/structural_impls.rs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs index 578955575af..ccac7720914 100644 --- a/src/librustc/ty/structural_impls.rs +++ b/src/librustc/ty/structural_impls.rs @@ -1,7 +1,6 @@ //! This module contains implements of the `Lift` and `TypeFoldable` //! traits for various types in the Rust compiler. Most are written by -//! hand, though we've recently added some macros (e.g., -//! `BraceStructLiftImpl!`) to help with the tedium. +//! hand, though we've recently added some macros and proc-macros to help with the tedium. use crate::hir::def::Namespace; use crate::mir::ProjectionKind; @@ -779,27 +778,6 @@ impl<'a, 'tcx> Lift<'tcx> for ty::InstanceDef<'a> { } } -BraceStructLiftImpl! { - impl<'a, 'tcx> Lift<'tcx> for ty::TypeAndMut<'a> { - type Lifted = ty::TypeAndMut<'tcx>; - ty, mutbl - } -} - -BraceStructLiftImpl! { - impl<'a, 'tcx> Lift<'tcx> for ty::Instance<'a> { - type Lifted = ty::Instance<'tcx>; - def, substs - } -} - -BraceStructLiftImpl! { - impl<'a, 'tcx> Lift<'tcx> for interpret::GlobalId<'a> { - type Lifted = interpret::GlobalId<'tcx>; - instance, promoted - } -} - /////////////////////////////////////////////////////////////////////////// // TypeFoldable implementations. // |
