about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-04-02 03:36:04 +0000
committerMichael Goulet <michael@errs.io>2025-04-02 04:01:15 +0000
commit444a7eb5aa9772d2d4363956bdfac8315e47d739 (patch)
treeb879f1f12578ec9f5db3e01fa114e53006515bca /compiler/rustc_interface/src
parenta3e6b6947196554227a636095a7fdec0923a20d9 (diff)
downloadrust-444a7eb5aa9772d2d4363956bdfac8315e47d739.tar.gz
rust-444a7eb5aa9772d2d4363956bdfac8315e47d739.zip
Use return_result_from_ensure_ok a bit more
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 93013c8b3f6..747e36b6a1a 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -976,7 +976,7 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
         tcx.par_hir_body_owners(|def_id| {
             if tcx.is_coroutine(def_id.to_def_id()) {
                 tcx.ensure_ok().mir_coroutine_witnesses(def_id);
-                tcx.ensure_ok().check_coroutine_obligations(
+                let _ = tcx.ensure_ok().check_coroutine_obligations(
                     tcx.typeck_root_def_id(def_id.to_def_id()).expect_local(),
                 );
                 // Eagerly check the unsubstituted layout for cycles.