Skip to content

Commit c07a722

Browse files
committed
diagnostics: remvoe unnecessary use of source_map.start_point
1 parent dca160a commit c07a722

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
@@ -2153,7 +2153,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
21532153
} else {
21542154
// If the root import is module-relative, add the import separately
21552155
corrections.push((
2156-
source_map.start_point(import.use_span).shrink_to_lo(),
2156+
import.use_span.shrink_to_lo(),
21572157
format!("use {module_name}::{import_snippet};\n"),
21582158
));
21592159
}

0 commit comments

Comments
 (0)