Skip to content

Commit dfcd644

Browse files
committed
fix(hir): Heed our own lint in OnUnimplementedCondition::matches_predicate
1 parent 18c0dd4 commit dfcd644

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_hir/src/attrs/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub struct OnUnimplementedCondition {
254254
pub pred: Predicate,
255255
}
256256
impl OnUnimplementedCondition {
257-
pub fn matches_predicate(self: &OnUnimplementedCondition, options: &ConditionOptions) -> bool {
257+
pub fn matches_predicate(&self, options: &ConditionOptions) -> bool {
258258
self.pred.eval(&mut |p| match p {
259259
FlagOrNv::Flag(b) => options.has_flag(*b),
260260
FlagOrNv::NameValue(NameValue { name, value }) => {

0 commit comments

Comments
 (0)