mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +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:
|
// Note:
|
||||||
// The final goal we would like to make all parse_macro success,
|
// The final goal we would like to make all parse_macro success,
|
||||||
// such that the following log will not call anyway.
|
// such that the following log will not call anyway.
|
||||||
let loc: MacroCallLoc = db.lookup_intern_macro(macro_call_id);
|
match macro_call_id {
|
||||||
|
MacroCallId::LazyMacro(id) => {
|
||||||
|
let loc: MacroCallLoc = db.lookup_intern_macro(id);
|
||||||
let node = loc.kind.node(db);
|
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: {} macro_call: {:#})",
|
||||||
|
err,
|
||||||
|
node.value
|
||||||
|
);
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
log::warn!("fail on macro_parse: (reason: {})", err);
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.ok()?;
|
.ok()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue