Lines Matching refs:path
34 use std::path::Path;
58 fn walk(path: &Path, err: &mut Errors) {
59 for entry in t!(path.read_dir()).map(|e| t!(e)) {
60 let path = entry.path();
62 walk(&path, err);
76 t!(t!(fs::File::open(&path)).read_to_string(&mut contents));
78 check_style(&contents, &path, err);
98 fn check_style(file: &str, path: &Path, err: &mut Errors) {
111 err.error(path, i, "use cfg_if! and submodules instead of #[cfg]");
115 err.error(path, i, "impl ::Copy and ::Clone manually");
164 path,
176 err.error(path, i, "multiple f! macros in one module");
180 err.error(path, i, "multiple s! macros in one module");
203 fn error(&mut self, path: &Path, line: usize, msg: &str) {
205 println!("{}:{}: {}", path.display(), line + 1, msg);