Skip to content

Commit af9ab1b

Browse files
committed
Remove structured_errors module
1 parent 2f0368c commit af9ab1b

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

compiler/rustc_hir_analysis/src/errors.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use rustc_middle::ty::Ty;
99
use rustc_span::{symbol::Ident, Span, Symbol};
1010
mod pattern_types;
1111
pub use pattern_types::*;
12+
pub mod wrong_number_of_generic_args;
1213

1314
mod precise_captures;
1415
pub(crate) use precise_captures::*;

compiler/rustc_hir_analysis/src/hir_ty_lowering/generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use super::IsMethodCall;
2+
use crate::errors::wrong_number_of_generic_args::{GenericArgsInfo, WrongNumberOfGenericArgs};
23
use crate::hir_ty_lowering::{
34
errors::prohibit_assoc_item_constraint, ExplicitLateBound, GenericArgCountMismatch,
45
GenericArgCountResult, GenericArgPosition, GenericArgsLowerer,
56
};
6-
use crate::structured_errors::{GenericArgsInfo, WrongNumberOfGenericArgs};
77
use rustc_ast::ast::ParamKindOrd;
88
use rustc_errors::{
99
codes::*, struct_span_code_err, Applicability, Diag, ErrorGuaranteed, MultiSpan,

compiler/rustc_hir_analysis/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ mod errors;
9292
pub mod hir_wf_check;
9393
mod impl_wf_check;
9494
mod outlives;
95-
pub mod structured_errors;
9695
mod variance;
9796

9897
use rustc_hir as hir;

compiler/rustc_hir_analysis/src/structured_errors.rs

-3
This file was deleted.

0 commit comments

Comments
 (0)