mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
feat: Load sysroot library via cargo metadata
This commit is contained in:
parent
670a5ab4a9
commit
f053b1aa6a
16 changed files with 156 additions and 212 deletions
|
@ -64,6 +64,18 @@ impl AsRef<AbsPath> for ManifestPath {
|
|||
}
|
||||
}
|
||||
|
||||
impl AsRef<std::path::Path> for ManifestPath {
|
||||
fn as_ref(&self) -> &std::path::Path {
|
||||
self.file.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<std::ffi::OsStr> for ManifestPath {
|
||||
fn as_ref(&self) -> &std::ffi::OsStr {
|
||||
self.file.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl Borrow<AbsPath> for ManifestPath {
|
||||
fn borrow(&self) -> &AbsPath {
|
||||
self.file.borrow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue