]> git.lizzy.rs Git - rust.git/commit
Include macro name in 'local ambiguity' error
authorAaron Hill <aa1ronham@gmail.com>
Tue, 8 Jun 2021 01:17:48 +0000 (20:17 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 8 Jun 2021 01:17:48 +0000 (20:17 -0500)
commit822f800ad74c7d43fc8b9170558e144726c3f777
tree3ed8b0f7a6721352c4db9fa55126869ad059514e
parente4a60327063e82413eed50a10df3b7d19b77bda0
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.
compiler/rustc_expand/src/lib.rs
compiler/rustc_expand/src/mbe/macro_parser.rs
compiler/rustc_expand/src/mbe/macro_rules.rs
src/test/ui/macros/local-ambiguity-multiple-parsing-options.stderr