Skip to content

Commit dbff14b

Browse files
committed
Clarify meaning of MachineApplicable suggestions.
1 parent 716394d commit dbff14b

File tree

1 file changed

+5
-1
lines changed
  • compiler/rustc_lint_defs/src

1 file changed

+5
-1
lines changed

compiler/rustc_lint_defs/src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ macro_rules! pluralize {
2525
/// before applying the suggestion.
2626
#[derive(Copy, Clone, Debug, PartialEq, Hash, Encodable, Decodable)]
2727
pub enum Applicability {
28-
/// The suggestion is definitely what the user intended. This suggestion should be
28+
/// The suggestion is definitely what the user intended, or maintains the exact meaning of the code.
29+
/// This suggestion should be automatically applied.
30+
///
31+
/// In case of multiple `MachineApplicable` suggestions (whether as part of
32+
/// the same `multipart_suggestion` or not), all of them should be
2933
/// automatically applied.
3034
MachineApplicable,
3135

0 commit comments

Comments
 (0)