Skip to content

Commit f2070c3

Browse files
committed
diagnostics: remvoe unnecessary use of source_map.start_point
1 parent 04af19f commit f2070c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
23132313
} else {
23142314
// If the root import is module-relative, add the import separately
23152315
corrections.push((
2316-
source_map.start_point(import.use_span).shrink_to_lo(),
2316+
import.use_span.shrink_to_lo(),
23172317
format!("use {module_name}::{import_snippet};\n"),
23182318
));
23192319
}

0 commit comments

Comments
 (0)