mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
Fix hover for Self
keyword
This commit is contained in:
parent
5c0aee013e
commit
b454f11f38
2 changed files with 2 additions and 2 deletions
|
@ -545,7 +545,6 @@ fn keyword_hints(
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
T![fn] => {
|
||||
let module = match ast::FnPtrType::cast(parent) {
|
||||
// treat fn keyword inside function pointer type as primitive
|
||||
|
@ -554,7 +553,7 @@ fn keyword_hints(
|
|||
};
|
||||
KeywordHint::new(token.text().to_string(), module)
|
||||
}
|
||||
|
||||
T![Self] => KeywordHint::new(token.text().to_string(), "self_upper_keyword".into()),
|
||||
_ => KeywordHint::new(token.text().to_string(), format!("{}_keyword", token.text())),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue