about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2023-11-26 21:05:08 +0800
committerbohan <bohan-zhang@foxmail.com>2023-11-26 21:05:08 +0800
commitf23befe6c118573a2ca041bc89f959a8813b43a2 (patch)
treedc0185a1375a527e7112b07412295916683cff7e /compiler/rustc_ty_utils/src/implied_bounds.rs
parent274b5249eb1014b441fd9fe45e9373111f61e413 (diff)
downloadrust-f23befe6c118573a2ca041bc89f959a8813b43a2.tar.gz
rust-f23befe6c118573a2ca041bc89f959a8813b43a2.zip
merge `DefKind::Coroutine` into `DefKind::Closure`
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index 6cf5aa6f2fb..eef90dc6dac 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -156,8 +156,7 @@ fn assumed_wf_types<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> &'tcx [(Ty<'
         | DefKind::Field
         | DefKind::LifetimeParam
         | DefKind::GlobalAsm
-        | DefKind::Closure
-        | DefKind::Coroutine => ty::List::empty(),
+        | DefKind::Closure => ty::List::empty(),
     }
 }