mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
feat: Resolve builtin-attr and tools in ide layer
This commit is contained in:
parent
4691a0647b
commit
e58af219a4
15 changed files with 209 additions and 99 deletions
|
@ -369,6 +369,8 @@ pub(super) fn definition(
|
|||
}
|
||||
Definition::GenericParam(it) => label_and_docs(db, it),
|
||||
Definition::Label(it) => return Some(Markup::fenced_block(&it.name(db))),
|
||||
Definition::BuiltinAttr(_) => return None, // FIXME
|
||||
Definition::Tool(_) => return None, // FIXME
|
||||
};
|
||||
|
||||
markup(docs.filter(|_| config.documentation.is_some()).map(Into::into), label, mod_path)
|
||||
|
|
|
@ -3678,7 +3678,6 @@ fn hover_clippy_lint() {
|
|||
|
||||
#[test]
|
||||
fn hover_attr_path_qualifier() {
|
||||
cov_mark::check!(name_ref_classify_attr_path_qualifier);
|
||||
check(
|
||||
r#"
|
||||
//- /foo.rs crate:foo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue