about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-15 14:33:02 +0100
committerGitHub <noreply@github.com>2024-02-15 14:33:02 +0100
commite878439d39dde42cc89fa8a1523034852fca0ef6 (patch)
treeb14656dea6605a87d11fc4ac22a36c6c03f28b7c /compiler
parent3c8705402adec4584de5aaf934e069c09a3142f8 (diff)
parentc1bb352c8bd3457f16053f3d6a3d32b63b55cbbe (diff)
downloadrust-e878439d39dde42cc89fa8a1523034852fca0ef6.tar.gz
rust-e878439d39dde42cc89fa8a1523034852fca0ef6.zip
Rollup merge of #121113 - oli-obk:track_errors10, r=compiler-errors
Continue compilation even if inherent impl checks fail

We should not be hiding errors behind unrelated errors
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_hir_analysis/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs
index 1cd77050217..33092825e89 100644
--- a/compiler/rustc_hir_analysis/src/lib.rs
+++ b/compiler/rustc_hir_analysis/src/lib.rs
@@ -178,8 +178,9 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
             let _ = tcx.ensure().coherent_trait(trait_def_id);
         }
         // these queries are executed for side-effects (error reporting):
-        res.and(tcx.ensure().crate_inherent_impls(()))
-            .and(tcx.ensure().crate_inherent_impls_overlap_check(()))
+        let _ = tcx.ensure().crate_inherent_impls(());
+        let _ = tcx.ensure().crate_inherent_impls_overlap_check(());
+        res
     })?;
 
     if tcx.features().rustc_attrs {