about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-17 19:10:03 +0000
committerbors <bors@rust-lang.org>2024-06-17 19:10:03 +0000
commit04ab7b2be0db3e6787f5303285c6b2ee6279868d (patch)
tree708015dfa752126c900eba620ffd477578abb437 /compiler/rustc_interface/src
parent11380368dc53d0b2fc3a627408818eff1973ce9a (diff)
parentd5f9117403ab281d8168f81a31ed6c2d9257d839 (diff)
downloadrust-04ab7b2be0db3e6787f5303285c6b2ee6279868d.tar.gz
rust-04ab7b2be0db3e6787f5303285c6b2ee6279868d.zip
Auto merge of #126605 - matthiaskrgr:rollup-plsaytq, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - #126255 (fix checking git submodules during a commit hook)
 - #126355 (Pass target to some run-make tests)
 - #126567 (Rename `InstanceDef` -> `InstanceKind`)
 - #126579 (Fix broken documentation link)
 - #126596 (Add tracking issue number to async_drop APIs)
 - #126603 (Update books)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index d52286d5887..f881d53858a 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -756,7 +756,7 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
                 || tcx.hir().body_const_context(def_id).is_some()
             {
                 tcx.ensure().mir_drops_elaborated_and_const_checked(def_id);
-                tcx.ensure().unused_generic_params(ty::InstanceDef::Item(def_id.to_def_id()));
+                tcx.ensure().unused_generic_params(ty::InstanceKind::Item(def_id.to_def_id()));
             }
         }
     });