]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_session/lint.rs
Rollup merge of #72688 - djugei:master, r=Amanieu
[rust.git] / src / librustc_session / lint.rs
index ffb45793090750926b7dc798751ca57e90675bd2..0dcbee08abea1f7d1d473fe832112573a09cb740 100644 (file)
@@ -88,6 +88,8 @@ pub struct Lint {
 
     /// `Some` if this lint is feature gated, otherwise `None`.
     pub feature_gate: Option<Symbol>,
+
+    pub crate_level_only: bool,
 }
 
 /// Extra information for a future incompatibility lint.
@@ -111,6 +113,7 @@ pub const fn default_fields_for_macro() -> Self {
             report_in_external_macro: false,
             future_incompatible: None,
             feature_gate: None,
+            crate_level_only: false,
         }
     }
 
@@ -336,6 +339,7 @@ macro_rules! declare_tool_lint {
             future_incompatible: None,
             is_plugin: true,
             feature_gate: None,
+            crate_level_only: false,
         };
     );
 }