mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
Use the same name in xtask and test utils
This commit is contained in:
parent
b6ba0dec0c
commit
abb6b8f14c
4 changed files with 12 additions and 12 deletions
|
@ -7,7 +7,7 @@ use std::{
|
|||
use ast::NameOwner;
|
||||
use expect_test::expect_file;
|
||||
use rayon::prelude::*;
|
||||
use test_utils::{bench, bench_fixture, project_dir, skip_slow_tests};
|
||||
use test_utils::{bench, bench_fixture, project_root, skip_slow_tests};
|
||||
|
||||
use crate::{ast, fuzz, tokenize, AstNode, SourceFile, SyntaxError, TextRange, TextSize, Token};
|
||||
|
||||
|
@ -153,7 +153,7 @@ fn reparse_fuzz_tests() {
|
|||
/// Test that Rust-analyzer can parse and validate the rust-analyzer
|
||||
#[test]
|
||||
fn self_hosting_parsing() {
|
||||
let dir = project_dir().join("crates");
|
||||
let dir = project_root().join("crates");
|
||||
let files = walkdir::WalkDir::new(dir)
|
||||
.into_iter()
|
||||
.filter_entry(|entry| {
|
||||
|
@ -193,7 +193,7 @@ fn self_hosting_parsing() {
|
|||
}
|
||||
|
||||
fn test_data_dir() -> PathBuf {
|
||||
project_dir().join("crates/syntax/test_data")
|
||||
project_root().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