mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-08 03:08:48 +00:00
fa15c4d75e
1175: Fix bugs and add error log about macro expansion r=matklad a=edwin0cheng This PR fixed / add following things: * Add a fused count which stop recursion of macro expansion in name resolution. * Add some logs when macro expansion fails * Add `$crate` meta variable support in mbe, which create a `$crate` ident token in token tree. * Fixed matching a `$REPEAT` pattern inside a subtree, e.g. `(fn $name:ident {$($i:ident)*} ) => {...}` * Remove composite-able punct token in syntax node to token conversion. Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com> |
||
---|---|---|
.. | ||
code_model_impl | ||
expr | ||
nameres | ||
ty | ||
adt.rs | ||
code_model_api.rs | ||
code_model_impl.rs | ||
db.rs | ||
diagnostics.rs | ||
docs.rs | ||
either.rs | ||
expr.rs | ||
generics.rs | ||
ids.rs | ||
impl_block.rs | ||
lang_item.rs | ||
lib.rs | ||
marks.rs | ||
mock.rs | ||
module_tree.rs | ||
name.rs | ||
nameres.rs | ||
path.rs | ||
resolve.rs | ||
source_binder.rs | ||
source_id.rs | ||
traits.rs | ||
ty.rs | ||
type_alias.rs | ||
type_ref.rs |