Also note struct access, and fix macro expansion from foreign crates
This commit is contained in:
parent
06072468fe
commit
09e584671b
7 changed files with 72 additions and 18 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue