about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-24 21:37:01 +0000
committerMichael Goulet <michael@errs.io>2025-03-04 00:04:01 +0000
commit09e584671b439dc8a9d57cc900cc26668a69ddea (patch)
tree38763c999f24e795c21a0ccd88a763ba64cccbcf /compiler/rustc_hir_analysis
parent06072468fe8de249a39d2fcc42cea51db2649a80 (diff)
downloadrust-09e584671b439dc8a9d57cc900cc26668a69ddea.tar.gz
rust-09e584671b439dc8a9d57cc900cc26668a69ddea.zip
Also note struct access, and fix macro expansion from foreign crates
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs b/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
index 156ddb8f2aa..6b9c1c0b309 100644
--- a/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
+++ b/compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
@@ -153,7 +153,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
             sugg: None,
             // Try to get the span of the identifier within the path's syntax context
             // (if that's different).
-            within_macro_span: assoc_name.span.within_macro(span),
+            within_macro_span: assoc_name.span.within_macro(span, tcx.sess.source_map()),
         };
 
         if is_dummy {