mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix: Don't print proc-macro panic backtraces in the logs
This commit is contained in:
parent
ba01ff4f88
commit
80dc20f7d8
11 changed files with 41 additions and 42 deletions
|
@ -404,13 +404,7 @@ fn traverse(
|
|||
})
|
||||
.unwrap()
|
||||
} else {
|
||||
sema.descend_into_macros_single(
|
||||
match attr_or_derive_item {
|
||||
Some(AttrOrDerive::Attr(_)) => DescendPreference::SameKind,
|
||||
Some(AttrOrDerive::Derive(_)) | None => DescendPreference::None,
|
||||
},
|
||||
token,
|
||||
)
|
||||
sema.descend_into_macros_single(DescendPreference::SameKind, token)
|
||||
};
|
||||
match token.parent().and_then(ast::NameLike::cast) {
|
||||
// Remap the token into the wrapping single token nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue