diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-04-16 21:41:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 21:41:23 +0200 |
| commit | c4f14ed785e9e1c72ba644adaddb1f16f37fd661 (patch) | |
| tree | 903328ba723679ef258a04a6ba36eb834a6a3536 /clippy_lints | |
| parent | dd0da10511c1d8068ec1f9a2a3bdb65405c06b32 (diff) | |
| parent | 3e1136049706c90ae6ab30bfaf8c63839059aa36 (diff) | |
| download | rust-c4f14ed785e9e1c72ba644adaddb1f16f37fd661.tar.gz rust-c4f14ed785e9e1c72ba644adaddb1f16f37fd661.zip | |
Rollup merge of #122811 - nnethercote:mv-SourceMap-init, r=WaffleLapkin
Move `SourceMap` initialization So it happens at the same time as `SessionGlobals` initialization, rather than shortly afterward. r? `@WaffleLapkin`
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/doc/needless_doctest_main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/doc/needless_doctest_main.rs b/clippy_lints/src/doc/needless_doctest_main.rs index e55a988321b..651f2ebaee6 100644 --- a/clippy_lints/src/doc/needless_doctest_main.rs +++ b/clippy_lints/src/doc/needless_doctest_main.rs @@ -38,7 +38,7 @@ pub fn check( // of all `#[test]` attributes in not ignored code examples fn check_code_sample(code: String, edition: Edition, ignore: bool) -> (bool, Vec<Range<usize>>) { rustc_driver::catch_fatal_errors(|| { - rustc_span::create_session_globals_then(edition, || { + rustc_span::create_session_globals_then(edition, None, || { let mut test_attr_spans = vec![]; let filename = FileName::anon_source_code(&code); |
