mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Test for Builtin Type
This commit is contained in:
parent
b74b9797bc
commit
8317c8db1a
2 changed files with 14 additions and 1 deletions
|
@ -473,7 +473,7 @@ fn get_doc_base_urls(
|
|||
// https://github.com/rust-lang/rust-analyzer/issues/12250
|
||||
if let Definition::BuiltinType(..) = def {
|
||||
let weblink = Url::parse("https://doc.rust-lang.org/nightly/core/").ok();
|
||||
return (weblink, local_doc_path);
|
||||
return (weblink, None);
|
||||
};
|
||||
|
||||
let Some(krate) = def.krate(db) else { return Default::default() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue