diff options
| author | flip1995 <hello@philkrones.com> | 2020-09-24 14:49:22 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2020-09-24 14:49:22 +0200 |
| commit | f1f1e0ba8ea1895eb2568e9d19378bbe43a17bcb (patch) | |
| tree | 07605b9855fd4fe6e1904fb0f15c4bd9cc828369 /src/tools/clippy/clippy_dev | |
| parent | 86b4172305bb28612510db9ad3ebf2a4bb86f70f (diff) | |
| parent | e636b88aa180e8cab9e28802aac90adbc984234d (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.rs | 4 |
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() ) |
