Skip to content

Commit c4f14ed

Browse files
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`
2 parents dd0da10 + 3e11360 commit c4f14ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎clippy_lints/src/doc/needless_doctest_main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn check(
3838
// of all `#[test]` attributes in not ignored code examples
3939
fncheck_code_sample(code:String,edition:Edition,ignore:bool) -> (bool,Vec<Range<usize>>){
4040
rustc_driver::catch_fatal_errors(|| {
41-
rustc_span::create_session_globals_then(edition, || {
41+
rustc_span::create_session_globals_then(edition,None,|| {
4242
letmut test_attr_spans = vec![];
4343
let filename = FileName::anon_source_code(&code);
4444

0 commit comments

Comments
 (0)