Skip to content

Commit 6b1980f

Browse files
committed
Rename CloneLiftImpls as TrivialLiftImpls.
To match `TrivialTypeTraversalImpls` and `TrivialTypeTraversalAndLiftImpls`, and because the `Clone` doesn't mean anything.
1 parent 46fe65d commit 6b1980f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: compiler/rustc_middle/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ macro_rules! span_bug {
4242
// the impls for you.
4343

4444
#[macro_export]
45-
macro_rules! CloneLiftImpls {
45+
macro_rules! TrivialLiftImpls {
4646
($($ty:ty),+ $(,)?) => {
4747
$(
4848
impl<'tcx> $crate::ty::Lift<'tcx> for $ty {
@@ -96,6 +96,6 @@ macro_rules! TrivialTypeTraversalImpls {
9696
macro_rules! TrivialTypeTraversalAndLiftImpls {
9797
($($t:tt)*) => {
9898
TrivialTypeTraversalImpls! { $($t)* }
99-
CloneLiftImpls! { $($t)* }
99+
TrivialLiftImpls! { $($t)* }
100100
}
101101
}

Diff for: compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ nop_list_lift! {bound_variable_kinds; ty::BoundVariableKind => ty::BoundVariable
12591259
// This is the impl for `&'a GenericArgs<'a>`.
12601260
nop_list_lift! {args; GenericArg<'a> => GenericArg<'tcx>}
12611261

1262-
CloneLiftImpls! {
1262+
TrivialLiftImpls! {
12631263
Constness,
12641264
traits::WellFormedLoc,
12651265
ImplPolarity,

Diff for: compiler/rustc_middle/src/ty/structural_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ impl<'tcx, T: DebugWithInfcx<TyCtxt<'tcx>>> DebugWithInfcx<TyCtxt<'tcx>> for ty:
456456

457457
// For things for which the type library provides traversal implementations
458458
// for all Interners, we only need to provide a Lift implementation:
459-
CloneLiftImpls! {
459+
TrivialLiftImpls! {
460460
(),
461461
bool,
462462
usize,

0 commit comments

Comments
 (0)