Lines Matching defs:path
12 use std::path::{Path, PathBuf};
31 Error::Utf8(path, _) => write!(f, "Failed to read file `{}`", path.display()),
60 pub(super) fn format_err(path: &Path, source: &str, error: Error) -> ! {
68 display_syn_error(stderr, path, source, error);
75 path.display(),
114 fn display_syn_error(stderr: &mut dyn WriteColor, path: &Path, source: &str, error: syn::Error) {
144 let mut path = path.to_string_lossy();
145 if path == "-" {
146 path = Cow::Borrowed(if cfg!(unix) { "/dev/stdin" } else { "stdin" });
150 let file = files.add(path, source);