Skip to content

Commit ce8a625

Browse files
committedJul 22, 2024
Move all error reporting into rustc_trait_selection
1 parent f49738b commit ce8a625

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2539
-2529
lines changed
 

‎compiler/rustc_borrowck/src/diagnostics/bound_region_errors.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use rustc_errors::Diag;
22
use rustc_hir::def_id::LocalDefId;
3-
use rustc_infer::error_reporting::infer::nice_region_error::NiceRegionError;
43
use rustc_infer::infer::canonical::Canonical;
54
use rustc_infer::infer::region_constraints::Constraint;
65
use rustc_infer::infer::region_constraints::RegionConstraintData;
@@ -14,6 +13,8 @@ use rustc_middle::ty::RegionVid;
1413
use rustc_middle::ty::UniverseIndex;
1514
use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable};
1615
use rustc_span::Span;
16+
use rustc_trait_selection::error_reporting::infer::nice_region_error::NiceRegionError;
17+
use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
1718
use rustc_trait_selection::traits::query::type_op;
1819
use rustc_trait_selection::traits::ObligationCtxt;
1920
use rustc_traits::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};

‎compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ use rustc_span::def_id::LocalDefId;
3535
use rustc_span::hygiene::DesugaringKind;
3636
use rustc_span::symbol::{kw, sym, Ident};
3737
use rustc_span::{BytePos, Span, Symbol};
38-
use rustc_trait_selection::error_reporting::traits::suggestions::TypeErrCtxtExt;
3938
use rustc_trait_selection::error_reporting::traits::FindExprBySpan;
39+
use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
4040
use rustc_trait_selection::infer::InferCtxtExt;
4141
use rustc_trait_selection::traits::{Obligation, ObligationCause, ObligationCtxt};
4242
use std::iter;

0 commit comments

Comments
 (0)