Skip to content

Commit 91ad4bf

Browse files
committed
jsondocck: Explain what KNOWN_DIRECTIVE_NAMES is doing
1 parent 14db1b5 commit 91ad4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/jsondocck/src/directive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl DirectiveKind {
105105
[_path, value] => Self::HasNotValue { value: value.clone() },
106106
_ => panic!("`//@ !has` must have 2 or 3 arguments, but got {args:?}"),
107107
},
108-
108+
// Ignore compiletest directives, like //@ edition
109109
(_, false) if KNOWN_DIRECTIVE_NAMES.contains(&directive_name) => {
110110
return None;
111111
}

0 commit comments

Comments
 (0)