mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add alloc to the sysroot
This commit is contained in:
parent
ea3124c12a
commit
e3f8e7d13d
2 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,10 @@ impl Sysroot {
|
|||
self.by_name("core")
|
||||
}
|
||||
|
||||
pub fn alloc(&self) -> Option<SysrootCrate> {
|
||||
self.by_name("alloc")
|
||||
}
|
||||
|
||||
pub fn std(&self) -> Option<SysrootCrate> {
|
||||
self.by_name("std")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue