Skip to content

Commit

Permalink
Rollup merge of #122811 - nnethercote:mv-SourceMap-init, r=WaffleLapkin
Browse files Browse the repository at this point in the history
Move `SourceMap` initialization

So it happens at the same time as `SessionGlobals` initialization, rather than shortly afterward.

r? `@WaffleLapkin`
  • Loading branch information
GuillaumeGomez authored Apr 16, 2024
2 parents dd0da10 + 3e11360 commit c4f14ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/doc/needless_doctest_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c4f14ed

Please sign in to comment.