internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once

This commit is contained in:
Lukas Wirth 2024-08-02 11:08:19 +02:00
parent 670a5ab4a9
commit 758ad25229
15 changed files with 90 additions and 95 deletions

View file

@ -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) {