Skip to content

Commit 9ad56e3

Browse files
committed
Rename modules
1 parent 90821ad commit 9ad56e3

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

src/librustc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ mod macros;
9999

100100
// N.B., this module needs to be declared first so diagnostics are
101101
// registered before they are used.
102-
pub mod diagnostics;
102+
pub mod error_codes;
103103

104104
#[macro_use]
105105
pub mod query;

src/librustc_codegen_llvm/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ use rustc_mir::monomorphize;
7070
use rustc_codegen_ssa::ModuleCodegen;
7171
use rustc_codegen_utils::codegen_backend::CodegenBackend;
7272

73-
mod diagnostics;
73+
mod error_codes;
7474

7575
mod back {
7676
mod archive;

src/librustc_codegen_ssa/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use syntax_pos::symbol::Symbol;
4141

4242
// N.B., this module needs to be declared first so diagnostics are
4343
// registered before they are used.
44-
mod diagnostics;
44+
mod error_codes;
4545

4646
pub mod common;
4747
pub mod traits;

src/librustc_lint/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#[macro_use]
2626
extern crate rustc;
2727

28-
mod diagnostics;
28+
mod error_codes;
2929
mod nonstandard_style;
3030
pub mod builtin;
3131
mod types;

src/librustc_metadata/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern crate rustc;
2626
#[macro_use]
2727
extern crate rustc_data_structures;
2828

29-
mod diagnostics;
29+
mod error_codes;
3030

3131
mod index_builder;
3232
mod index;

src/librustc_mir/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern crate serialize as rustc_serialize; // used by deriving
4040
#[macro_use]
4141
extern crate syntax;
4242

43-
mod diagnostics;
43+
mod error_codes;
4444

4545
mod borrow_check;
4646
mod build;

src/librustc_passes/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern crate rustc;
1919

2020
use rustc::ty::query::Providers;
2121

22-
mod diagnostics;
22+
mod error_codes;
2323

2424
pub mod ast_validation;
2525
pub mod rvalue_promotion;

src/librustc_plugin/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
pub use registry::Registry;
6363

64-
mod diagnostics;
64+
mod error_codes;
6565
pub mod registry;
6666
pub mod load;
6767
pub mod build;

src/librustc_privacy/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use syntax_pos::Span;
3333
use std::{cmp, fmt, mem};
3434
use std::marker::PhantomData;
3535

36-
mod diagnostics;
36+
mod error_codes;
3737

3838
////////////////////////////////////////////////////////////////////////////////
3939
/// Generic infrastructure used to implement specific visitors below.

src/librustc_resolve/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ use std::mem::replace;
6565
use rustc_data_structures::ptr_key::PtrKey;
6666
use rustc_data_structures::sync::Lrc;
6767

68-
use error_reporting::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding};
68+
use diagnostics::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding};
6969
use resolve_imports::{ImportDirective, ImportDirectiveSubclass, NameResolution, ImportResolver};
7070
use macros::{InvocationData, LegacyBinding, ParentScope};
7171

7272
type Def = def::Def<NodeId>;
7373

7474
// N.B., this module needs to be declared first so diagnostics are
7575
// registered before they are used.
76+
mod error_codes;
7677
mod diagnostics;
77-
mod error_reporting;
7878
mod macros;
7979
mod check_unused;
8080
mod build_reduced_graph;

src/librustc_typeck/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This API is completely unstable and subject to change.
8181

8282
// N.B., this module needs to be declared first so diagnostics are
8383
// registered before they are used.
84-
mod diagnostics;
84+
mod error_codes;
8585

8686
mod astconv;
8787
mod check;

src/libsyntax_ext/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
extern crate proc_macro;
1919

20-
mod diagnostics;
20+
mod error_codes;
2121

2222
mod asm;
2323
mod assert;

0 commit comments

Comments
 (0)