Skip to content

Commit 46b1643

Browse files
committed
update cargo dev ra-setup to changed rustc source paths
1 parent 8b54f1e commit 46b1643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_dev/src/ra_setup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn run(rustc_path: Option<&str>) {
1414
// we can unwrap here because the arg is required here
1515
let rustc_path = PathBuf::from(rustc_path.unwrap());
1616
assert!(rustc_path.is_dir(), "path is not a directory");
17-
let rustc_source_basedir = rustc_path.join("src");
17+
let rustc_source_basedir = rustc_path.join("compiler");
1818
assert!(
1919
rustc_source_basedir.is_dir(),
2020
"are you sure the path leads to a rustc repo?"
@@ -61,7 +61,7 @@ fn inject_deps_into_manifest(
6161
let new_deps = extern_crates.map(|dep| {
6262
// format the dependencies that are going to be put inside the Cargo.toml
6363
format!(
64-
"{dep} = {{ path = \"{source_path}/lib{dep}\" }}\n",
64+
"{dep} = {{ path = \"{source_path}/{dep}\" }}\n",
6565
dep = dep,
6666
source_path = rustc_source_dir.display()
6767
)

0 commit comments

Comments
 (0)