about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2022-11-21 21:04:59 +0100
committerPhilipp Krones <hello@philkrones.com>2022-11-21 21:05:06 +0100
commit242280252d741f720f31b36309c9e2b37fc44fa7 (patch)
tree1425c95205f5489672601ce85a61bec7d0ffc99b
parentb4c90abb5f60cc5f25769e6ca5342b6f5c972e83 (diff)
downloadrust-242280252d741f720f31b36309c9e2b37fc44fa7.tar.gz
rust-242280252d741f720f31b36309c9e2b37fc44fa7.zip
Clippy: Don't import GenericParamDefKind
-rw-r--r--src/tools/clippy/clippy_utils/src/ty.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/clippy/clippy_utils/src/ty.rs b/src/tools/clippy/clippy_utils/src/ty.rs
index 897edfc5495..a26cdf64716 100644
--- a/src/tools/clippy/clippy_utils/src/ty.rs
+++ b/src/tools/clippy/clippy_utils/src/ty.rs
@@ -13,9 +13,9 @@ use rustc_infer::infer::TyCtxtInferExt;
 use rustc_lint::LateContext;
 use rustc_middle::mir::interpret::{ConstValue, Scalar};
 use rustc_middle::ty::{
-    self, AdtDef, AssocKind, Binder, BoundRegion, DefIdTree, FnSig, GenericParamDefKind, IntTy, List, ParamEnv,
-    Predicate, PredicateKind, ProjectionTy, Region, RegionKind, SubstsRef, Ty, TyCtxt, TypeSuperVisitable,
-    TypeVisitable, TypeVisitor, UintTy, VariantDef, VariantDiscr,
+    self, AdtDef, AssocKind, Binder, BoundRegion, DefIdTree, FnSig, IntTy, List, ParamEnv, Predicate, PredicateKind,
+    ProjectionTy, Region, RegionKind, SubstsRef, Ty, TyCtxt, TypeSuperVisitable, TypeVisitable, TypeVisitor, UintTy,
+    VariantDef, VariantDiscr,
 };
 use rustc_middle::ty::{GenericArg, GenericArgKind};
 use rustc_span::symbol::Ident;
@@ -1011,7 +1011,7 @@ pub fn make_projection<'tcx>(
                 assoc_item.def_id,
                 substs.len(),
                 generic_count,
-                params.map(GenericParamDefKind::descr).collect::<Vec<_>>(),
+                params.map(ty::GenericParamDefKind::descr).collect::<Vec<_>>(),
                 substs,
             );
 
@@ -1022,9 +1022,9 @@ pub fn make_projection<'tcx>(
                 .find(|(_, (param, arg))| {
                     !matches!(
                         (param, arg),
-                        (GenericParamDefKind::Lifetime, GenericArgKind::Lifetime(_))
-                            | (GenericParamDefKind::Type { .. }, GenericArgKind::Type(_))
-                            | (GenericParamDefKind::Const { .. }, GenericArgKind::Const(_))
+                        (ty::GenericParamDefKind::Lifetime, GenericArgKind::Lifetime(_))
+                            | (ty::GenericParamDefKind::Type { .. }, GenericArgKind::Type(_))
+                            | (ty::GenericParamDefKind::Const { .. }, GenericArgKind::Const(_))
                     )
                 })
             {
@@ -1036,7 +1036,7 @@ pub fn make_projection<'tcx>(
                     idx,
                     param.descr(),
                     arg,
-                    params.map(GenericParamDefKind::descr).collect::<Vec<_>>(),
+                    params.map(ty::GenericParamDefKind::descr).collect::<Vec<_>>(),
                     substs,
                 );
             }