mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
Merge #318
318: Remove a completed and an unactionable todo r=matklad a=DJMcNab Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
This commit is contained in:
commit
f2581a4a29
@ -160,7 +160,7 @@ fn next_token_inner(c: char, ptr: &mut Ptr) -> SyntaxKind {
|
||||
// if we find one, then this is an invalid character literal
|
||||
if ptr.at('\'') {
|
||||
ptr.bump();
|
||||
return CHAR; // TODO: error reporting
|
||||
return CHAR;
|
||||
}
|
||||
LIFETIME
|
||||
} else {
|
||||
|
@ -65,14 +65,10 @@ fn self_hosting_parsing() {
|
||||
for entry in walkdir::WalkDir::new(dir)
|
||||
.into_iter()
|
||||
.filter_entry(|entry| {
|
||||
!entry
|
||||
.path()
|
||||
.components()
|
||||
// TODO: this more neatly
|
||||
.any(|component| {
|
||||
// Get all files which are not in the crates/ra_syntax/tests/data folder
|
||||
component == Component::Normal(OsStr::new("data"))
|
||||
})
|
||||
!entry.path().components().any(|component| {
|
||||
// Get all files which are not in the crates/ra_syntax/tests/data folder
|
||||
component == Component::Normal(OsStr::new("data"))
|
||||
})
|
||||
})
|
||||
.map(|e| e.unwrap())
|
||||
.filter(|entry| {
|
||||
|
Loading…
Reference in New Issue
Block a user