From c07a722847497233e6590d62a3d63946409385c3 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 6 Dec 2022 08:44:48 -0700 Subject: [PATCH] diagnostics: remvoe unnecessary use of `source_map.start_point` --- compiler/rustc_resolve/src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 0b60952ae3c..8d104aa5cc5 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -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"), )); }