Skip to content

Commit

Permalink
Rollup merge of #85852 - m-ou-se:machineapplicable-docs, r=nikomatsakis
Browse files Browse the repository at this point in the history
Clarify meaning of MachineApplicable suggestions.

This documents the meaning of MachineApplicable in case of multiple suggestions, as described in #53934 (comment)

r? ``@nikomatsakis``
  • Loading branch information
JohnTitor authored Jun 3, 2021
2 parents 34f1275 + dbff14b commit ff0b7cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_lint_defs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit ff0b7cd

Please sign in to comment.