mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +00:00
Revert "Revert to f6f7c5"
This approach is correct, but it needs an addition to Restrictions too This reverts commit ad00d0c8a5f64142e6636e8b048204c8f8982f4a.
This commit is contained in:
parent
4dce66ad31
commit
def0a95d35
3 changed files with 36 additions and 22 deletions
|
@ -43,7 +43,6 @@ fn parser_fuzz_tests() {
|
|||
fn self_hosting_parsing() {
|
||||
let empty_vec = vec![];
|
||||
let dir = project_dir();
|
||||
let mut count = 0u32;
|
||||
for entry in walkdir::WalkDir::new(dir)
|
||||
.into_iter()
|
||||
.filter_entry(|entry| {
|
||||
|
@ -64,7 +63,6 @@ fn self_hosting_parsing() {
|
|||
!entry.path().is_dir() && (entry.path().extension() == Some(std::ffi::OsStr::new("rs")))
|
||||
})
|
||||
{
|
||||
count += 1;
|
||||
let text = read_text(entry.path());
|
||||
let node = SourceFileNode::parse(&text);
|
||||
let errors = node.errors();
|
||||
|
@ -74,7 +72,6 @@ fn self_hosting_parsing() {
|
|||
entry
|
||||
);
|
||||
}
|
||||
panic!("{}", count)
|
||||
}
|
||||
/// Read file and normalize newlines.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue