Include macro name in 'local ambiguity' error

Currently, we only point at the span of the macro argument. When the
macro call is itself generated by another macro, this can make it
difficult or impossible to determine which macro is responsible for
producing the error.
This commit is contained in:
Aaron Hill 2021-06-07 20:17:48 -05:00
parent e4a6032706
commit 822f800ad7
No known key found for this signature in database
GPG key ID: B4087E510E98B164
4 changed files with 13 additions and 7 deletions

View file

@ -1,6 +1,7 @@
#![feature(crate_visibility_modifier)]
#![feature(decl_macro)]
#![feature(destructuring_assignment)]
#![feature(format_args_capture)]
#![feature(iter_zip)]
#![feature(proc_macro_diagnostic)]
#![feature(proc_macro_internals)]