We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd0da10 + 3e11360 commit c4f14edCopy full SHA for c4f14ed
clippy_lints/src/doc/needless_doctest_main.rs
@@ -38,7 +38,7 @@ pub fn check(
38
// of all `#[test]` attributes in not ignored code examples
39
fn check_code_sample(code: String, edition: Edition, ignore: bool) -> (bool, Vec<Range<usize>>) {
40
rustc_driver::catch_fatal_errors(|| {
41
- rustc_span::create_session_globals_then(edition, || {
+ rustc_span::create_session_globals_then(edition, None, || {
42
let mut test_attr_spans = vec![];
43
let filename = FileName::anon_source_code(&code);
44
0 commit comments