]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint_defs/src/lib.rs
Rollup merge of #85926 - ehuss:update-cargo, r=ehuss
[rust.git] / compiler / rustc_lint_defs / src / lib.rs
index 400b367095ec3b7107c4e8ada1db99b181555b0f..f1c4e5fb4a368ba1e5a7cdd596155d21157895aa 100644 (file)
@@ -25,7 +25,11 @@ macro_rules! pluralize {
 /// before applying the suggestion.
 #[derive(Copy, Clone, Debug, PartialEq, Hash, Encodable, Decodable)]
 pub enum Applicability {
-    /// The suggestion is definitely what the user intended. This suggestion should be
+    /// The suggestion is definitely what the user intended, or maintains the exact meaning of the code.
+    /// This suggestion should be automatically applied.
+    ///
+    /// In case of multiple `MachineApplicable` suggestions (whether as part of
+    /// the same `multipart_suggestion` or not), all of them should be
     /// automatically applied.
     MachineApplicable,
 
@@ -267,6 +271,7 @@ pub enum BuiltinLintDiagnostics {
     LegacyDeriveHelpers(Span),
     ExternDepSpec(String, ExternDepSpec),
     ProcMacroBackCompat(String),
+    OrPatternsBackCompat(Span, String),
 }
 
 /// Lints that are buffered up early on in the `Session` before the