Skip to content

Commit

Permalink
Ignore non-.rs files for proc_macro_coverage_hack
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed Dec 7, 2021
1 parent ee74d2b commit c925df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/proc_macro_coverage_hack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn walk_dir(path: PathBuf) {
Ok(entry) if entry.file_type().unwrap().is_dir() => {
walk_dir(entry.path());
}
Ok(entry) if entry.file_type().unwrap().is_file() => {
Ok(entry) if entry.file_type().unwrap().is_file() && entry.path().ends_with(".rs") => {
println!("Feeding {:?}", entry.path());
let file = fs::File::open(entry.path()).unwrap();
emulate_macro_expansion_fallible(file);
Expand Down

0 comments on commit c925df6

Please sign in to comment.