Vadim Petrochenkov
eb65f15c78
ast: Stop using Mod
in Crate
...
Crate root is sufficiently different from `mod` items, at least at syntactic level.
Also remove customization point for "`mod` item or crate root" from AST visitors.
2021-02-18 13:07:49 +03:00
Matthias Krüger
d12a358673
use matches!() macro in more places
2020-12-24 13:35:12 +01:00
Vadim Petrochenkov
3237b3886c
rustc_ast: Do not panic by default when visiting macro calls
2020-11-03 20:38:20 +03:00
Aaron Hill
c1011165e6
Attach TokenStream
to ast::Visibility
...
A `Visibility` does not have outer attributes, so we only capture tokens
when parsing a `macro_rules!` matcher
2020-09-10 17:33:06 -04:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00