Test for Builtin Type

This commit is contained in:
Ddystopia 2023-04-26 19:55:17 +02:00
parent b74b9797bc
commit 8317c8db1a
No known key found for this signature in database
GPG key ID: 109875EC11535212
2 changed files with 14 additions and 1 deletions

View file

@ -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() };