mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Fix for rebasing
This commit is contained in:
parent
1e9a3233f7
commit
4d5e80c6c8
1 changed files with 14 additions and 3 deletions
|
@ -172,9 +172,20 @@ pub(crate) fn parse_macro(
|
|||
// Note:
|
||||
// The final goal we would like to make all parse_macro success,
|
||||
// such that the following log will not call anyway.
|
||||
let loc: MacroCallLoc = db.lookup_intern_macro(macro_call_id);
|
||||
let node = loc.kind.node(db);
|
||||
log::warn!("fail on macro_parse: (reason: {} macro_call: {:#})", err, node.value);
|
||||
match macro_call_id {
|
||||
MacroCallId::LazyMacro(id) => {
|
||||
let loc: MacroCallLoc = db.lookup_intern_macro(id);
|
||||
let node = loc.kind.node(db);
|
||||
log::warn!(
|
||||
"fail on macro_parse: (reason: {} macro_call: {:#})",
|
||||
err,
|
||||
node.value
|
||||
);
|
||||
}
|
||||
_ => {
|
||||
log::warn!("fail on macro_parse: (reason: {})", err);
|
||||
}
|
||||
}
|
||||
})
|
||||
.ok()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue