Lines Matching refs:path
12 use std::path::{Path, PathBuf};
250 let mut path = entry.unwrap().into_path();
251 if path.extension() == Some(OsStr::new("stderr")) {
253 rs_files.remove(&path.with_extension("rs"));
254 path = path.with_extension("");
255 if path.extension().is_none() {
267 let path = entry.path();
269 let mut path_string = path.to_string_lossy();
275 } else if let Some(path) = path_string.strip_prefix("tests/rust/") {
276 path
278 panic!("unexpected path in Rust dist: {}", path_string);
281 if path.is_dir() {
285 if path.extension() != Some(OsStr::new("rs")) {
293 pub fn edition(path: &Path) -> &'static str {
294 if path.ends_with("dyn-2015-no-warnings-without-lints.rs") {
316 panic!("duplicate path in EXCLUDE_FILES: {}", exclude);
332 panic!("duplicate path in EXCLUDE_DIRS: {}", exclude);
364 let path = entry.path()?;
365 if path == Path::new("pax_global_header") {
368 let relative = path.strip_prefix(&prefix)?;