1
Fork 0

Rename CloneLiftImpls as TrivialLiftImpls.

To match `TrivialTypeTraversalImpls` and
`TrivialTypeTraversalAndLiftImpls`, and because the `Clone` doesn't mean
anything.
This commit is contained in:
Nicholas Nethercote 2023-09-14 12:03:56 +10:00
parent 46fe65d0e5
commit 6b1980f9cf
3 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ macro_rules! span_bug {
// the impls for you.
#[macro_export]
macro_rules! CloneLiftImpls {
macro_rules! TrivialLiftImpls {
($($ty:ty),+ $(,)?) => {
$(
impl<'tcx> $crate::ty::Lift<'tcx> for $ty {
@ -96,6 +96,6 @@ macro_rules! TrivialTypeTraversalImpls {
macro_rules! TrivialTypeTraversalAndLiftImpls {
($($t:tt)*) => {
TrivialTypeTraversalImpls! { $($t)* }
CloneLiftImpls! { $($t)* }
TrivialLiftImpls! { $($t)* }
}
}

View file

@ -1259,7 +1259,7 @@ nop_list_lift! {bound_variable_kinds; ty::BoundVariableKind => ty::BoundVariable
// This is the impl for `&'a GenericArgs<'a>`.
nop_list_lift! {args; GenericArg<'a> => GenericArg<'tcx>}
CloneLiftImpls! {
TrivialLiftImpls! {
Constness,
traits::WellFormedLoc,
ImplPolarity,

View file

@ -456,7 +456,7 @@ impl<'tcx, T: DebugWithInfcx<TyCtxt<'tcx>>> DebugWithInfcx<TyCtxt<'tcx>> for ty:
// For things for which the type library provides traversal implementations
// for all Interners, we only need to provide a Lift implementation:
CloneLiftImpls! {
TrivialLiftImpls! {
(),
bool,
usize,