Do not provide suggestions when the spans come from expanded code that doesn't point at user code by oli-obk · Pull Request #109082 · rust-lang/rust (original) (raw)
Hide invalid proc-macro suggestions and track spans
coming from proc-macros pointing at attribute.
Effectively, unless the proc-macro keeps user spans,
suggestions will not be produced for the code they
produce.
r? @ghost
Fix #107113, fix #107976, fix #107977, fix #108748, fix #106720, fix #90557.
Could potentially address #50141, #67373, #55146, #78862, #74043, #88514, #83320, #91520, #104071. CC #50122, #76360.