Skip to content

Commit

Permalink
diagnostics: remvoe unnecessary use of source_map.start_point
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Jan 20, 2023
1 parent dca160a commit c07a722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_resolve/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
} else {
// If the root import is module-relative, add the import separately
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"),
));
}
Expand Down

0 comments on commit c07a722

Please sign in to comment.