mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once
This commit is contained in:
parent
670a5ab4a9
commit
758ad25229
15 changed files with 90 additions and 95 deletions
|
@ -79,7 +79,7 @@ fn self_hosting_parsing() {
|
|||
let crates_dir = project_root().join("crates");
|
||||
|
||||
let mut files = Vec::new();
|
||||
let mut work = vec![crates_dir.to_path_buf()];
|
||||
let mut work = vec![crates_dir.into_std_path_buf()];
|
||||
while let Some(dir) = work.pop() {
|
||||
for entry in dir.read_dir().unwrap() {
|
||||
let entry = entry.unwrap();
|
||||
|
@ -127,7 +127,7 @@ fn self_hosting_parsing() {
|
|||
}
|
||||
|
||||
fn test_data_dir() -> PathBuf {
|
||||
project_root().join("crates/syntax/test_data")
|
||||
project_root().into_std_path_buf().join("crates/syntax/test_data")
|
||||
}
|
||||
|
||||
fn assert_errors_are_present(errors: &[SyntaxError], path: &Path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue