diff options
| author | bors <bors@rust-lang.org> | 2023-11-26 16:42:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-26 16:42:32 +0000 |
| commit | 3bb0171999a65b0650d9405a7b2e8e7dc3476dec (patch) | |
| tree | feb05d1be6c8e2d550aec54a94f3e1a30d8a21fe /compiler/rustc_interface/src | |
| parent | 3dbb4da04267b19bc8c403c0bb2b41c5b8010a61 (diff) | |
| parent | cb04603af446316a2e44a6df45388f4355922dfa (diff) | |
| download | rust-3bb0171999a65b0650d9405a7b2e8e7dc3476dec.tar.gz rust-3bb0171999a65b0650d9405a7b2e8e7dc3476dec.zip | |
Auto merge of #118319 - GuillaumeGomez:rollup-vte50yq, r=GuillaumeGomez
Rollup of 4 pull requests Successful merges: - #118296 (rustdoc: replace `elemIsInParent` with `Node.contains`) - #118302 (Clean dead codes) - #118311 (merge `DefKind::Coroutine` into `Defkind::Closure`) - #118318 (Remove myself from users on vacation) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 99bea647bd5..4648d83a6f3 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -756,7 +756,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { }); tcx.hir().par_body_owners(|def_id| { - if let rustc_hir::def::DefKind::Coroutine = tcx.def_kind(def_id) { + if tcx.is_coroutine(def_id.to_def_id()) { tcx.ensure().mir_coroutine_witnesses(def_id); tcx.ensure().check_coroutine_obligations(def_id); } |
