Skip to content

Commit ca3f1b2

Browse files
Update src/tools/lint-docs/src/lib.rs
Co-authored-by: Eric Huss <[email protected]>
1 parent e22a8d2 commit ca3f1b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/lint-docs/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,10 @@ impl<'a> LintExtractor<'a> {
497497
let non_json: Vec<&str> =
498498
stderr.lines().filter(|line| !line.starts_with('{')).collect();
499499
return Err(format!(
500-
"lint `{}` is unstable and must be enabled in example. see:\n{}\n{}",
500+
"did not find lint `{}` in output of example (got unknown_lints)\n\
501+
Is the lint possibly misspelled, or does it need a `#![feature(...)]`?\n\
502+
Output was:\n\
503+
{}\n{}",
501504
name,
502505
rendered.join("\n"),
503506
non_json.join("\n"),

0 commit comments

Comments
 (0)