about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-05-20 19:51:09 -0400
committerJacob Pratt <jacob@jhpratt.dev>2022-05-20 20:04:54 -0400
commit49c82f31a85f04a709810de4ccfb8ba765c1377b (patch)
treedbcbf74a4c0cef46af19b4b24f04dd2e79e3ea23 /compiler/rustc_errors/src/diagnostic.rs
parent536020c5f97883aa9f2a90897a5adb520486d2e1 (diff)
downloadrust-49c82f31a85f04a709810de4ccfb8ba765c1377b.tar.gz
rust-49c82f31a85f04a709810de4ccfb8ba765c1377b.zip
Remove `crate` visibility usage in compiler
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic.rs')
-rw-r--r--compiler/rustc_errors/src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs
index 909ed566f64..f130b5aa9a6 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -90,7 +90,7 @@ pub trait AddSubdiagnostic {
 pub struct Diagnostic {
     // NOTE(eddyb) this is private to disallow arbitrary after-the-fact changes,
     // outside of what methods in this crate themselves allow.
-    crate level: Level,
+    pub(crate) level: Level,
 
     pub message: Vec<(DiagnosticMessage, Style)>,
     pub code: Option<DiagnosticId>,