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.
2 parents aa220c7 + fb83ef6 commit 6baa129Copy full SHA for 6baa129
clippy_lints/src/doc/needless_doctest_main.rs
@@ -53,7 +53,7 @@ pub fn check(
53
let mut parser = match maybe_new_parser_from_source_str(&sess, filename, code) {
54
Ok(p) => p,
55
Err(errs) => {
56
- drop(errs);
+ errs.into_iter().for_each(|err| err.cancel());
57
return (false, test_attr_spans);
58
},
59
};
0 commit comments