mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Highlight unresolved derives as being unresolved
This commit is contained in:
parent
b4bd27be90
commit
b6e7cf3201
4 changed files with 6 additions and 4 deletions
|
@ -538,8 +538,8 @@ impl<'db> SemanticsImpl<'db> {
|
|||
}
|
||||
|
||||
fn expand_derive_as_pseudo_attr_macro(&self, attr: &ast::Attr) -> Option<SyntaxNode> {
|
||||
let src = self.wrap_node_infile(attr.clone());
|
||||
let adt = attr.syntax().parent().and_then(ast::Adt::cast)?;
|
||||
let src = self.wrap_node_infile(attr.clone());
|
||||
let call_id = self.with_ctx(|ctx| {
|
||||
ctx.attr_to_derive_macro_call(src.with_value(&adt), src).map(|(_, it, _)| it)
|
||||
})?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue