about summary refs log tree commit diff
path: root/compiler/rustc_traits/src/codegen.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-22 15:06:18 +0000
committerbors <bors@rust-lang.org>2024-07-22 15:06:18 +0000
commit20f23abbecd7ac5e04dd7ccadc29c3824e28a269 (patch)
treefea0459dbdf2bd9e43c4903d8c03e9d098da97df /compiler/rustc_traits/src/codegen.rs
parentaee3dc4c6cc0e018b648a340fb98af10887ce4ba (diff)
parente9e9495f2113c0aa64d96e7850e5fdbe73bb6aac (diff)
downloadrust-20f23abbecd7ac5e04dd7ccadc29c3824e28a269.tar.gz
rust-20f23abbecd7ac5e04dd7ccadc29c3824e28a269.zip
Auto merge of #128041 - compiler-errors:uplift-errors-into-trait-sel, r=lcnr
Uplift most type-system related error reporting from `rustc_infer` to `rustc_trait_selection`

Completes the major part of #127492. The only cleanup that's needed afterwards is to actually use normalization in favor of the callback where needed, and deleting `can_eq_shallow`.

r? lcnr

Sorry for the large diff! Would prefer if comments can be handled in a follow-up (unless they're absolutely dealbreakers) because it seems bitrotty to let this sit.
Diffstat (limited to 'compiler/rustc_traits/src/codegen.rs')
-rw-r--r--compiler/rustc_traits/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/codegen.rs b/compiler/rustc_traits/src/codegen.rs
index 3ee5fd876ff..ada2c8e81de 100644
--- a/compiler/rustc_traits/src/codegen.rs
+++ b/compiler/rustc_traits/src/codegen.rs
@@ -7,7 +7,7 @@ use rustc_infer::infer::TyCtxtInferExt;
 use rustc_middle::bug;
 use rustc_middle::traits::CodegenObligationError;
 use rustc_middle::ty::{self, TyCtxt, TypeVisitableExt};
-use rustc_trait_selection::error_reporting::traits::TypeErrCtxtOverflowExt;
+use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
 use rustc_trait_selection::traits::{
     ImplSource, Obligation, ObligationCause, ObligationCtxt, ScrubbedTraitError, SelectionContext,
     Unimplemented,