set the applicability of op_ref to MachineApplicable (#14438)
#2597 appears to be already resolved, so the applicability of `op_ref` can be set to `MachineApplicable`. close #2597 changelog: [`op_ref`]: set the applicability to `MachineApplicable`
This commit is contained in:
commit
d9934328dd
3 changed files with 28 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ pub(crate) fn check<'tcx>(
|
|||
left.span,
|
||||
"use the left value directly",
|
||||
lsnip,
|
||||
Applicability::MaybeIncorrect, // FIXME #2597
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
@ -105,7 +105,7 @@ pub(crate) fn check<'tcx>(
|
|||
right.span,
|
||||
"use the right value directly",
|
||||
rsnip,
|
||||
Applicability::MaybeIncorrect, // FIXME #2597
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
@ -137,7 +137,7 @@ pub(crate) fn check<'tcx>(
|
|||
left.span,
|
||||
"use the left value directly",
|
||||
lsnip,
|
||||
Applicability::MaybeIncorrect, // FIXME #2597
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
@ -164,7 +164,7 @@ pub(crate) fn check<'tcx>(
|
|||
right.span,
|
||||
"use the right value directly",
|
||||
rsnip,
|
||||
Applicability::MaybeIncorrect, // FIXME #2597
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue