mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Saw a FIXME comment and decided to fix it.
This renames `descend_into_macros` to `descend_into_macros_single` and `descend_into_macros_many` into `descend_into_macros`. However, this does not touch a function in `SemanticsImpl` of same name.
This commit is contained in:
parent
64b1c72af2
commit
eccfa1645b
16 changed files with 20 additions and 22 deletions
|
|
@ -32,7 +32,7 @@ pub(crate) fn expand_macro(db: &RootDatabase, position: FilePosition) -> Option<
|
|||
_ => 0,
|
||||
})?;
|
||||
|
||||
let descended = sema.descend_into_macros(tok.clone());
|
||||
let descended = sema.descend_into_macros_single(tok.clone());
|
||||
if let Some(attr) = descended.ancestors().find_map(ast::Attr::cast) {
|
||||
if let Some((path, tt)) = attr.as_simple_call() {
|
||||
if path == "derive" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue