16

Github More precise spans for HIR paths by petrochenkov · Pull Request #83092 ·...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/83092
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

petrochenkov commented 18 days ago

Ty::assoc_item is lowered to <Ty>::assoc_item in HIR, but Ty got span from the whole path.
This PR fixes that, and adjusts some diagnostic code that relied on Ty having the whole path span.

This is a pre-requisite for #82868 (we cannot report suggestions like Tr::assoc -> <dyn Tr>::assoc with the current imprecise spans).
r? @estebank


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK