about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-02-12 18:26:47 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-02-14 19:55:44 +0000
commit03dff82d598233d4f1193d763f73c71a76ad6187 (patch)
tree479ecf751628d20a9e10de14b46573edfe4ec302 /compiler/rustc_ty_utils/src
parent9bb6e60d1f1360234aae90c97964c0fa5524f141 (diff)
downloadrust-03dff82d598233d4f1193d763f73c71a76ad6187.tar.gz
rust-03dff82d598233d4f1193d763f73c71a76ad6187.zip
Add `of_trait` to DefKind::Impl.
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index 961c04974e5..2fe9d135fa5 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -21,7 +21,7 @@ fn assumed_wf_types(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::List<Ty<'_>> {
             assumed_wf_types.extend(liberated_sig.inputs_and_output);
             tcx.intern_type_list(&assumed_wf_types)
         }
-        DefKind::Impl => {
+        DefKind::Impl { .. } => {
             match tcx.impl_trait_ref(def_id) {
                 Some(trait_ref) => {
                     let types: Vec<_> = trait_ref.skip_binder().substs.types().collect();