Confusing error for misspelled Option
#3415
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
A-syntaxext
Area: Syntax extensions
To reproduce this, go into
syntax::ast
and change a use ofOption
tooption
. This resulted in aunresolved name : serialize_option
error. I think it would have been better to report thatoption
was an unresolved name first. (The particular use I changed was initem_impl
, but that's not checked in yet.)It would be nice to report errors that don't involve macro-expanded code first, but I'm not sure how easy that would be.
The text was updated successfully, but these errors were encountered: