From 9ad56e3b949ede66000ed7f10b557e9d9fe401ac Mon Sep 17 00:00:00 2001 From: Yuki OKUSHI Date: Wed, 17 Apr 2019 07:35:54 +0900 Subject: [PATCH] Rename modules --- src/librustc/lib.rs | 2 +- src/librustc_codegen_llvm/lib.rs | 2 +- src/librustc_codegen_ssa/lib.rs | 2 +- src/librustc_lint/lib.rs | 2 +- src/librustc_metadata/lib.rs | 2 +- src/librustc_mir/lib.rs | 2 +- src/librustc_passes/lib.rs | 2 +- src/librustc_plugin/lib.rs | 2 +- src/librustc_privacy/lib.rs | 2 +- src/librustc_resolve/lib.rs | 4 ++-- src/librustc_typeck/lib.rs | 2 +- src/libsyntax_ext/lib.rs | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index c5c2cbfcb89..a50ef55a2fd 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -99,7 +99,7 @@ mod macros; // N.B., this module needs to be declared first so diagnostics are // registered before they are used. -pub mod diagnostics; +pub mod error_codes; #[macro_use] pub mod query; diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index da91217e95e..c2eee59fbb0 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -70,7 +70,7 @@ use rustc_mir::monomorphize; use rustc_codegen_ssa::ModuleCodegen; use rustc_codegen_utils::codegen_backend::CodegenBackend; -mod diagnostics; +mod error_codes; mod back { mod archive; diff --git a/src/librustc_codegen_ssa/lib.rs b/src/librustc_codegen_ssa/lib.rs index e2917578c0e..14caca84a9f 100644 --- a/src/librustc_codegen_ssa/lib.rs +++ b/src/librustc_codegen_ssa/lib.rs @@ -41,7 +41,7 @@ use syntax_pos::symbol::Symbol; // N.B., this module needs to be declared first so diagnostics are // registered before they are used. -mod diagnostics; +mod error_codes; pub mod common; pub mod traits; diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs index 9354f203e4e..cd967f5b713 100644 --- a/src/librustc_lint/lib.rs +++ b/src/librustc_lint/lib.rs @@ -25,7 +25,7 @@ #[macro_use] extern crate rustc; -mod diagnostics; +mod error_codes; mod nonstandard_style; pub mod builtin; mod types; diff --git a/src/librustc_metadata/lib.rs b/src/librustc_metadata/lib.rs index 4078171733f..873d36c4544 100644 --- a/src/librustc_metadata/lib.rs +++ b/src/librustc_metadata/lib.rs @@ -26,7 +26,7 @@ extern crate rustc; #[macro_use] extern crate rustc_data_structures; -mod diagnostics; +mod error_codes; mod index_builder; mod index; diff --git a/src/librustc_mir/lib.rs b/src/librustc_mir/lib.rs index deeed9a0b98..299fe266528 100644 --- a/src/librustc_mir/lib.rs +++ b/src/librustc_mir/lib.rs @@ -40,7 +40,7 @@ extern crate serialize as rustc_serialize; // used by deriving #[macro_use] extern crate syntax; -mod diagnostics; +mod error_codes; mod borrow_check; mod build; diff --git a/src/librustc_passes/lib.rs b/src/librustc_passes/lib.rs index 20442a4a566..6cf5bf64946 100644 --- a/src/librustc_passes/lib.rs +++ b/src/librustc_passes/lib.rs @@ -19,7 +19,7 @@ extern crate rustc; use rustc::ty::query::Providers; -mod diagnostics; +mod error_codes; pub mod ast_validation; pub mod rvalue_promotion; diff --git a/src/librustc_plugin/lib.rs b/src/librustc_plugin/lib.rs index 351ba7f04d3..3775dbb79c6 100644 --- a/src/librustc_plugin/lib.rs +++ b/src/librustc_plugin/lib.rs @@ -61,7 +61,7 @@ pub use registry::Registry; -mod diagnostics; +mod error_codes; pub mod registry; pub mod load; pub mod build; diff --git a/src/librustc_privacy/lib.rs b/src/librustc_privacy/lib.rs index 44621e5dc95..9d187cea1ce 100644 --- a/src/librustc_privacy/lib.rs +++ b/src/librustc_privacy/lib.rs @@ -33,7 +33,7 @@ use syntax_pos::Span; use std::{cmp, fmt, mem}; use std::marker::PhantomData; -mod diagnostics; +mod error_codes; //////////////////////////////////////////////////////////////////////////////// /// Generic infrastructure used to implement specific visitors below. diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 96aac977297..bd5f87af6a9 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -65,7 +65,7 @@ use std::mem::replace; use rustc_data_structures::ptr_key::PtrKey; use rustc_data_structures::sync::Lrc; -use error_reporting::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding}; +use diagnostics::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding}; use resolve_imports::{ImportDirective, ImportDirectiveSubclass, NameResolution, ImportResolver}; use macros::{InvocationData, LegacyBinding, ParentScope}; @@ -73,8 +73,8 @@ type Def = def::Def; // N.B., this module needs to be declared first so diagnostics are // registered before they are used. +mod error_codes; mod diagnostics; -mod error_reporting; mod macros; mod check_unused; mod build_reduced_graph; diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs index 21d1af229dd..64b91289dfe 100644 --- a/src/librustc_typeck/lib.rs +++ b/src/librustc_typeck/lib.rs @@ -81,7 +81,7 @@ This API is completely unstable and subject to change. // N.B., this module needs to be declared first so diagnostics are // registered before they are used. -mod diagnostics; +mod error_codes; mod astconv; mod check; diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index ee0b86963f3..2847525caad 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -17,7 +17,7 @@ extern crate proc_macro; -mod diagnostics; +mod error_codes; mod asm; mod assert;