about summary refs log tree commit diff
path: root/src/libsyntax/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-01-08 12:12:08 +0000
committerbors <bors@rust-lang.org>2020-01-08 12:12:08 +0000
commited6468da160bd67a2ce0573427f09a98daff8c07 (patch)
treef60a0277a129a9835cafbe0eb526b28a4888f0e8 /src/libsyntax/lib.rs
parent87540bd3bca8dcd86223261f8c76c5bbf6811ee6 (diff)
parent20ebb807d523947f5fac710c4ae95ac9730ad995 (diff)
downloadrust-ed6468da160bd67a2ce0573427f09a98daff8c07.tar.gz
rust-ed6468da160bd67a2ce0573427f09a98daff8c07.zip
Auto merge of #67770 - Centril:reduce-diversity-2, r=petrochenkov
More reductions in error handling diversity

In this follow up to https://github.com/rust-lang/rust/pull/67744, we:

- Remove all fatal / error / warning macros in `syntax` except for `struct_span_err`, which is moved to `rustc_errors`.

- Lintify some hard-coded warnings which used warning macros.

- Defatalize some errors.

In general, the goal here is to make it painful to use fatal or unstructured errors and so we hopefully won't see many of these creep in.

Fixes https://github.com/rust-lang/rust/issues/67933.
Diffstat (limited to 'src/libsyntax/lib.rs')
-rw-r--r--src/libsyntax/lib.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 72beddf7bb5..b197eab7394 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -62,12 +62,6 @@ pub fn with_default_globals<R>(f: impl FnOnce() -> R) -> R {
 
 scoped_tls::scoped_thread_local!(pub static GLOBALS: Globals);
 
-#[macro_use]
-pub mod diagnostics {
-    #[macro_use]
-    pub mod macros;
-}
-
 pub mod util {
     pub mod classify;
     pub mod comments;