about summary refs log tree commit diff
path: root/src/tools/clippy/clippy_dev
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2020-09-24 14:49:22 +0200
committerflip1995 <hello@philkrones.com>2020-09-24 14:49:22 +0200
commitf1f1e0ba8ea1895eb2568e9d19378bbe43a17bcb (patch)
tree07605b9855fd4fe6e1904fb0f15c4bd9cc828369 /src/tools/clippy/clippy_dev
parent86b4172305bb28612510db9ad3ebf2a4bb86f70f (diff)
parente636b88aa180e8cab9e28802aac90adbc984234d (diff)
Merge commit 'e636b88aa180e8cab9e28802aac90adbc984234d' into clippyup
Diffstat (limited to 'src/tools/clippy/clippy_dev')
-rw-r--r--src/tools/clippy/clippy_dev/src/ra_setup.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_dev/src/ra_setup.rs b/src/tools/clippy/clippy_dev/src/ra_setup.rs
index f2bd651ab25..c67efc10f15 100644
--- a/src/tools/clippy/clippy_dev/src/ra_setup.rs
+++ b/src/tools/clippy/clippy_dev/src/ra_setup.rs
@@ -14,7 +14,7 @@ pub fn run(rustc_path: Option<&str>) {
     // we can unwrap here because the arg is required here
     let rustc_path = PathBuf::from(rustc_path.unwrap());
     assert!(rustc_path.is_dir(), "path is not a directory");
-    let rustc_source_basedir = rustc_path.join("src");
+    let rustc_source_basedir = rustc_path.join("compiler");
     assert!(
         rustc_source_basedir.is_dir(),
         "are you sure the path leads to a rustc repo?"
@@ -61,7 +61,7 @@ fn inject_deps_into_manifest(
     let new_deps = extern_crates.map(|dep| {
         // format the dependencies that are going to be put inside the Cargo.toml
         format!(
-            "{dep} = {{ path = \"{source_path}/lib{dep}\" }}\n",
+            "{dep} = {{ path = \"{source_path}/{dep}\" }}\n",
             dep = dep,
             source_path = rustc_source_dir.display()
         )