Skip to content

Commit de6046f

Browse files
committed
remove rustc_error_codes deps except in rustc_driver
1 parent 779f85b commit de6046f

File tree

109 files changed

+3
-194
lines changed

Some content is hidden

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

109 files changed

+3
-194
lines changed

Cargo.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,7 +3092,6 @@ dependencies = [
30923092
"rustc-rayon-core",
30933093
"rustc_apfloat",
30943094
"rustc_data_structures",
3095-
"rustc_error_codes",
30963095
"rustc_errors",
30973096
"rustc_feature",
30983097
"rustc_hir",
@@ -3358,7 +3357,6 @@ dependencies = [
33583357
"log",
33593358
"rustc",
33603359
"rustc_data_structures",
3361-
"rustc_error_codes",
33623360
"rustc_errors",
33633361
"rustc_hir",
33643362
"rustc_index",
@@ -3375,7 +3373,6 @@ version = "0.0.0"
33753373
dependencies = [
33763374
"log",
33773375
"rustc_data_structures",
3378-
"rustc_error_codes",
33793376
"rustc_errors",
33803377
"rustc_feature",
33813378
"rustc_parse",
@@ -3391,7 +3388,6 @@ dependencies = [
33913388
"fmt_macros",
33923389
"log",
33933390
"rustc_data_structures",
3394-
"rustc_error_codes",
33953391
"rustc_errors",
33963392
"rustc_expand",
33973393
"rustc_feature",
@@ -3445,7 +3441,6 @@ dependencies = [
34453441
"rustc_apfloat",
34463442
"rustc_codegen_utils",
34473443
"rustc_data_structures",
3448-
"rustc_error_codes",
34493444
"rustc_errors",
34503445
"rustc_fs_util",
34513446
"rustc_hir",
@@ -3675,7 +3670,6 @@ dependencies = [
36753670
"log",
36763671
"rustc",
36773672
"rustc_data_structures",
3678-
"rustc_error_codes",
36793673
"rustc_errors",
36803674
"rustc_feature",
36813675
"rustc_hir",
@@ -3716,7 +3710,6 @@ dependencies = [
37163710
"memmap",
37173711
"rustc",
37183712
"rustc_data_structures",
3719-
"rustc_error_codes",
37203713
"rustc_errors",
37213714
"rustc_expand",
37223715
"rustc_hir",
@@ -3744,7 +3737,6 @@ dependencies = [
37443737
"rustc",
37453738
"rustc_apfloat",
37463739
"rustc_data_structures",
3747-
"rustc_error_codes",
37483740
"rustc_errors",
37493741
"rustc_hir",
37503742
"rustc_index",
@@ -3767,7 +3759,6 @@ dependencies = [
37673759
"rustc",
37683760
"rustc_apfloat",
37693761
"rustc_data_structures",
3770-
"rustc_error_codes",
37713762
"rustc_errors",
37723763
"rustc_hir",
37733764
"rustc_index",
@@ -3786,7 +3777,6 @@ dependencies = [
37863777
"bitflags",
37873778
"log",
37883779
"rustc_data_structures",
3789-
"rustc_error_codes",
37903780
"rustc_errors",
37913781
"rustc_feature",
37923782
"rustc_lexer",
@@ -3804,7 +3794,6 @@ dependencies = [
38043794
"log",
38053795
"rustc",
38063796
"rustc_data_structures",
3807-
"rustc_error_codes",
38083797
"rustc_errors",
38093798
"rustc_feature",
38103799
"rustc_hir",
@@ -3820,7 +3809,6 @@ name = "rustc_plugin_impl"
38203809
version = "0.0.0"
38213810
dependencies = [
38223811
"rustc",
3823-
"rustc_error_codes",
38243812
"rustc_errors",
38253813
"rustc_hir",
38263814
"rustc_lint",
@@ -3836,7 +3824,6 @@ dependencies = [
38363824
"log",
38373825
"rustc",
38383826
"rustc_data_structures",
3839-
"rustc_error_codes",
38403827
"rustc_errors",
38413828
"rustc_hir",
38423829
"rustc_span",
@@ -3854,7 +3841,6 @@ dependencies = [
38543841
"rustc",
38553842
"rustc_ast_lowering",
38563843
"rustc_data_structures",
3857-
"rustc_error_codes",
38583844
"rustc_errors",
38593845
"rustc_expand",
38603846
"rustc_feature",
@@ -3890,7 +3876,6 @@ dependencies = [
38903876
"log",
38913877
"num_cpus",
38923878
"rustc_data_structures",
3893-
"rustc_error_codes",
38943879
"rustc_errors",
38953880
"rustc_feature",
38963881
"rustc_fs_util",
@@ -3973,7 +3958,6 @@ dependencies = [
39733958
"log",
39743959
"rustc",
39753960
"rustc_data_structures",
3976-
"rustc_error_codes",
39773961
"rustc_errors",
39783962
"rustc_hir",
39793963
"rustc_index",
@@ -4493,7 +4477,6 @@ version = "0.0.0"
44934477
dependencies = [
44944478
"log",
44954479
"rustc_data_structures",
4496-
"rustc_error_codes",
44974480
"rustc_errors",
44984481
"rustc_feature",
44994482
"rustc_index",

src/librustc/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@ byteorder = { version = "1.3" }
3737
chalk-engine = { version = "0.9.0", default-features=false }
3838
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
3939
measureme = "0.7.1"
40-
rustc_error_codes = { path = "../librustc_error_codes" }
4140
rustc_session = { path = "../librustc_session" }

src/librustc/hir/check_attr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use crate::hir::map::Map;
88
use crate::ty::query::Providers;
99
use crate::ty::TyCtxt;
1010

11-
use rustc_error_codes::*;
1211
use rustc_errors::struct_span_err;
1312
use rustc_hir as hir;
1413
use rustc_hir::def_id::DefId;

src/librustc/infer/error_reporting/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ use crate::ty::{
6565
Region, Ty, TyCtxt, TypeFoldable,
6666
};
6767
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
68-
use rustc_error_codes::*;
6968
use rustc_errors::{pluralize, struct_span_err};
7069
use rustc_errors::{Applicability, DiagnosticBuilder, DiagnosticStyledString};
7170
use rustc_hir as hir;

src/librustc/infer/error_reporting/need_type_info.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use rustc_span::symbol::kw;
1313
use rustc_span::Span;
1414
use std::borrow::Cow;
1515

16-
use rustc_error_codes::*;
17-
1816
struct FindLocalByTypeVisitor<'a, 'tcx> {
1917
infcx: &'a InferCtxt<'a, 'tcx>,
2018
target_ty: Ty<'tcx>,

src/librustc/infer/error_reporting/nice_region_error/different_lifetimes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use crate::infer::error_reporting::nice_region_error::util::AnonymousParamInfo;
55
use crate::infer::error_reporting::nice_region_error::NiceRegionError;
66
use crate::util::common::ErrorReported;
77

8-
use rustc_error_codes::*;
98
use rustc_errors::struct_span_err;
109

1110
impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {

src/librustc/infer/error_reporting/nice_region_error/named_anon_conflict.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use crate::ty;
55
use rustc_errors::{struct_span_err, Applicability, DiagnosticBuilder};
66
use rustc_hir::{FunctionRetTy, TyKind};
77

8-
use rustc_error_codes::*;
9-
108
impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
119
/// When given a `ConcreteFailure` for a function with parameters containing a named region and
1210
/// an anonymous region, emit an descriptive diagnostic error.

src/librustc/infer/error_reporting/note.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use crate::ty::error::TypeError;
55
use crate::ty::{self, Region};
66
use rustc_errors::{struct_span_err, DiagnosticBuilder};
77

8-
use rustc_error_codes::*;
9-
108
impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
119
pub(super) fn note_region_origin(
1210
&self,

src/librustc/infer/opaque_types/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ use rustc_hir::def_id::{DefId, DefIdMap};
1515
use rustc_hir::Node;
1616
use rustc_span::Span;
1717

18-
use rustc_error_codes::*;
19-
2018
pub type OpaqueTypeMap<'tcx> = DefIdMap<OpaqueTypeDecl<'tcx>>;
2119

2220
/// Information about the opaque types whose values we

src/librustc/middle/lang_items.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ use rustc_span::symbol::{sym, Symbol};
2424
use rustc_span::Span;
2525
use syntax::ast;
2626

27-
use rustc_error_codes::*;
28-
2927
// The actual lang items defined come at the end of this file in one handy table.
3028
// So you probably just want to nip down to the end.
3129
macro_rules! language_item_table {

0 commit comments

Comments
 (0)