summary refs log tree commit diff
path: root/compiler/rustc_middle/src/traits/select.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-10-07 15:08:59 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-10-07 15:14:22 +0000
commite8a2aee50d4a18a65ae39968806707d05ecf1663 (patch)
tree104f6c51d2a5f39b297c1e189eca180323de602f /compiler/rustc_middle/src/traits/select.rs
parente42c4d7218b2596276152c5eb1e69335621f3086 (diff)
downloadrust-e8a2aee50d4a18a65ae39968806707d05ecf1663.tar.gz
rust-e8a2aee50d4a18a65ae39968806707d05ecf1663.zip
Remove `DefId` from some `SelectionCandidate` variants
Diffstat (limited to 'compiler/rustc_middle/src/traits/select.rs')
-rw-r--r--compiler/rustc_middle/src/traits/select.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/traits/select.rs b/compiler/rustc_middle/src/traits/select.rs
index 6bcdfd6394a..11758599cff 100644
--- a/compiler/rustc_middle/src/traits/select.rs
+++ b/compiler/rustc_middle/src/traits/select.rs
@@ -115,7 +115,7 @@ pub enum SelectionCandidate<'tcx> {
 
     ParamCandidate(ty::PolyTraitPredicate<'tcx>),
     ImplCandidate(DefId),
-    AutoImplCandidate(DefId),
+    AutoImplCandidate,
 
     /// This is a trait matching with a projected type as `Self`, and we found
     /// an applicable bound in the trait definition. The `usize` is an index
@@ -143,7 +143,7 @@ pub enum SelectionCandidate<'tcx> {
     /// Builtin implementation of `Pointee`.
     PointeeCandidate,
 
-    TraitAliasCandidate(DefId),
+    TraitAliasCandidate,
 
     /// Matching `dyn Trait` with a supertrait of `Trait`. The index is the
     /// position in the iterator returned by