Skip to content

Commit b5321e3

Browse files
committed
Remove superfluous traversable impl for ClosureKind
1 parent 0a2a102 commit b5321e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ TrivialLiftImpls! {
410410
u64,
411411
::rustc_hir::def_id::DefId,
412412
::rustc_hir::Mutability,
413+
crate::ty::ClosureKind,
413414
crate::ty::ParamConst,
414415
crate::ty::ParamTy,
415416
interpret::Scalar,
@@ -431,7 +432,6 @@ TrivialTypeTraversalImpls! {
431432
TrivialTypeTraversalAndLiftImpls! {
432433
::rustc_hir::Unsafety,
433434
::rustc_target::spec::abi::Abi,
434-
crate::ty::ClosureKind,
435435
}
436436

437437
///////////////////////////////////////////////////////////////////////////

compiler/rustc_type_ir/src/predicate_kind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ where
376376
I::Term: TypeFoldable<I>,
377377
I::CoercePredicate: TypeFoldable<I>,
378378
I::SubtypePredicate: TypeFoldable<I>,
379-
I::ClosureKind: TypeFoldable<I>,
379+
I::ClosureKind: BoringTraversable,
380380
ClauseKind<I>: TypeFoldable<I>,
381381
{
382382
fn try_fold_with<F: FallibleTypeFolder<I>>(self, folder: &mut F) -> Result<Self, F::Error> {
@@ -420,7 +420,7 @@ where
420420
I::Term: TypeVisitable<I>,
421421
I::CoercePredicate: TypeVisitable<I>,
422422
I::SubtypePredicate: TypeVisitable<I>,
423-
I::ClosureKind: TypeVisitable<I>,
423+
I::ClosureKind: BoringTraversable,
424424
ClauseKind<I>: TypeVisitable<I>,
425425
{
426426
fn visit_with<V: TypeVisitor<I>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> {

0 commit comments

Comments
 (0)