Skip to content

Commit 70ba3b5

Browse files
authored
Merge pull request rust-lang#18822 from bryceberger/targetdir-absolute
allow targetDir to be an absolute path
2 parents 954efa9 + 369a654 commit 70ba3b5

File tree

1 file changed

+1
-2
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+1
-2
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,8 +2129,7 @@ impl Config {
21292129
Some(Utf8PathBuf::from("target/rust-analyzer"))
21302130
}
21312131
TargetDirectory::UseSubdirectory(false) => None,
2132-
TargetDirectory::Directory(dir) if dir.is_relative() => Some(dir.clone()),
2133-
TargetDirectory::Directory(_) => None,
2132+
TargetDirectory::Directory(dir) => Some(dir.clone()),
21342133
})
21352134
}
21362135

0 commit comments

Comments
 (0)