about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-06-10 10:59:03 +0200
committerPhilipp Hansch <dev@phansch.net>2019-06-10 11:47:42 +0200
commit33137ffdd5ffd7b80b01dafa88f2f4f301ef6b25 (patch)
tree444cfc46106a1c8c7d6b90f8b9998ffdbce1fc7d /src/librustc_errors
parente3516a128e55ffd175527add83ac9ca721a94ed7 (diff)
downloadrust-33137ffdd5ffd7b80b01dafa88f2f4f301ef6b25.tar.gz
rust-33137ffdd5ffd7b80b01dafa88f2f4f301ef6b25.zip
Address review comments
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/diagnostic_builder.rs2
-rw-r--r--src/librustc_errors/lib.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_errors/diagnostic_builder.rs b/src/librustc_errors/diagnostic_builder.rs
index b130a9d5a23..fc74e43ff57 100644
--- a/src/librustc_errors/diagnostic_builder.rs
+++ b/src/librustc_errors/diagnostic_builder.rs
@@ -348,7 +348,7 @@ impl<'a> DiagnosticBuilder<'a> {
 
     /// Convenience function for internal use, clients should use one of the
     /// struct_* methods on Handler.
-    pub(crate) fn new_with_code(handler: &'a Handler,
+    crate fn new_with_code(handler: &'a Handler,
                          level: Level,
                          code: Option<DiagnosticId>,
                          message: &str)
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 589e93f48b3..6ec1b90cd91 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -1,9 +1,10 @@
-//! Diagnostics creation and emission for rustc
+//! Diagnostics creation and emission for `rustc`.
 //!
 //! This module contains the code for creating and emitting diagnostics.
 
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 
+#![feature(crate_visibility_modifier)]
 #![allow(unused_attributes)]
 #![cfg_attr(unix, feature(libc))]
 #![feature(nll)]