]> git.lizzy.rs Git - rust.git/commitdiff
Merge #9700
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 28 Jul 2021 12:07:25 +0000 (12:07 +0000)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 12:07:25 +0000 (12:07 +0000)
9700: fix: Remove the legacy macro scoping hack r=matklad a=jonas-schievink

This stops prepending `self::` to single-ident macro paths, resolving even legacy-scoped macros using the fixed-point algorithm. This is not correct, but a lot easier than fixing this properly (which involves pushing a new scope for every macro definition and invocation).

This allows resolution of macros from the prelude, fixing https://github.com/rust-analyzer/rust-analyzer/issues/9687.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>

Trivial merge