about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-09-14 12:03:56 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-09-18 09:37:09 +1000
commit6b1980f9cfdc0d4d4556f1a191041df6dfd7a018 (patch)
tree6b4cc03a20af25f4c7b5d1567606f4a5897c217e /compiler/rustc_middle/src/ty
parent46fe65d0e5bc003b9d7b672988e3d10816c61ce8 (diff)
downloadrust-6b1980f9cfdc0d4d4556f1a191041df6dfd7a018.tar.gz
rust-6b1980f9cfdc0d4d4556f1a191041df6dfd7a018.zip
Rename `CloneLiftImpls` as `TrivialLiftImpls`.
To match `TrivialTypeTraversalImpls` and
`TrivialTypeTraversalAndLiftImpls`, and because the `Clone` doesn't mean
anything.
Diffstat (limited to 'compiler/rustc_middle/src/ty')
-rw-r--r--compiler/rustc_middle/src/ty/context.rs2
-rw-r--r--compiler/rustc_middle/src/ty/structural_impls.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index f7484048757..fa43241ce9b 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -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,
diff --git a/compiler/rustc_middle/src/ty/structural_impls.rs b/compiler/rustc_middle/src/ty/structural_impls.rs
index 7c25d0209c9..5d707e8ced1 100644
--- a/compiler/rustc_middle/src/ty/structural_impls.rs
+++ b/compiler/rustc_middle/src/ty/structural_impls.rs
@@ -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,