1
Fork 0

Also note struct access, and fix macro expansion from foreign crates

This commit is contained in:
Michael Goulet 2025-02-24 21:37:01 +00:00
parent 06072468fe
commit 09e584671b
7 changed files with 72 additions and 18 deletions

View file

@ -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 {