mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
diagnostics: remvoe unnecessary use of source_map.start_point
This commit is contained in:
parent
dca160a06a
commit
c07a722847
@ -2153,7 +2153,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
|
|||||||
} else {
|
} else {
|
||||||
// If the root import is module-relative, add the import separately
|
// If the root import is module-relative, add the import separately
|
||||||
corrections.push((
|
corrections.push((
|
||||||
source_map.start_point(import.use_span).shrink_to_lo(),
|
import.use_span.shrink_to_lo(),
|
||||||
format!("use {module_name}::{import_snippet};\n"),
|
format!("use {module_name}::{import_snippet};\n"),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user