Skip to content

Commit 7a85ddb

Browse files
committed
Remove superfluous traversable impl for DefId
1 parent df186ef commit 7a85ddb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ TrivialLiftImpls! {
408408
bool,
409409
usize,
410410
u64,
411+
::rustc_hir::def_id::DefId,
411412
::rustc_hir::Mutability,
412413
crate::ty::ParamConst,
413414
crate::ty::ParamTy,
@@ -430,7 +431,6 @@ TrivialTypeTraversalImpls! {
430431
// implementation and a lift implementation (the former only for TyCtxt<'_>
431432
// interners).
432433
TrivialTypeTraversalAndLiftImpls! {
433-
::rustc_hir::def_id::DefId,
434434
::rustc_hir::Unsafety,
435435
::rustc_target::spec::abi::Abi,
436436
crate::ty::ClosureKind,

compiler/rustc_type_ir/src/predicate_kind.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::ops::ControlFlow;
66

77
use crate::fold::{FallibleTypeFolder, TypeFoldable};
88
use crate::visit::{TypeVisitable, TypeVisitor};
9-
use crate::{HashStableContext, Interner};
9+
use crate::{HashStableContext, Interner, BoringTraversable};
1010
use crate::{TyDecoder, TyEncoder};
1111

1212
/// A clause is something that can appear in where bounds or be inferred
@@ -370,7 +370,7 @@ where
370370

371371
impl<I: Interner> TypeFoldable<I> for PredicateKind<I>
372372
where
373-
I::DefId: TypeFoldable<I>,
373+
I::DefId: BoringTraversable,
374374
I::Const: TypeFoldable<I>,
375375
I::GenericArgs: TypeFoldable<I>,
376376
I::Term: TypeFoldable<I>,
@@ -414,7 +414,7 @@ where
414414

415415
impl<I: Interner> TypeVisitable<I> for PredicateKind<I>
416416
where
417-
I::DefId: TypeVisitable<I>,
417+
I::DefId: BoringTraversable,
418418
I::Const: TypeVisitable<I>,
419419
I::GenericArgs: TypeVisitable<I>,
420420
I::Term: TypeVisitable<I>,

0 commit comments

Comments
 (0)