We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OnUnimplementedCondition::matches_predicate
1 parent 18c0dd4 commit dfcd644Copy full SHA for dfcd644
1 file changed
compiler/rustc_hir/src/attrs/diagnostic.rs
@@ -254,7 +254,7 @@ pub struct OnUnimplementedCondition {
254
pub pred: Predicate,
255
}
256
impl OnUnimplementedCondition {
257
- pub fn matches_predicate(self: &OnUnimplementedCondition, options: &ConditionOptions) -> bool {
+ pub fn matches_predicate(&self, options: &ConditionOptions) -> bool {
258
self.pred.eval(&mut |p| match p {
259
FlagOrNv::Flag(b) => options.has_flag(*b),
260
FlagOrNv::NameValue(NameValue { name, value }) => {
0 commit comments