mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 05:23:12 +00:00
Merge branch 'master' into add-disable-diagnostics
This commit is contained in:
commit
c26c911ec1
1140 changed files with 2355 additions and 2386 deletions
|
|
@ -121,12 +121,12 @@ export class Cargo {
|
|||
}
|
||||
}
|
||||
|
||||
/** Mirrors `ra_toolchain::cargo()` implementation */
|
||||
/** Mirrors `toolchain::cargo()` implementation */
|
||||
export function cargoPath(): string {
|
||||
return getPathForExecutable("cargo");
|
||||
}
|
||||
|
||||
/** Mirrors `ra_toolchain::get_path_for_executable()` implementation */
|
||||
/** Mirrors `toolchain::get_path_for_executable()` implementation */
|
||||
export const getPathForExecutable = memoize(
|
||||
// We apply caching to decrease file-system interactions
|
||||
(executableName: "cargo" | "rustc" | "rustup"): string => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue