Lines Matching refs:error
2 use std::error;
12 /// This error type encompasses any error that can be returned by this crate.
15 /// An error that occurred while translating concrete syntax into abstract
18 /// An error that occurred while translating abstract syntax into a high
42 impl error::Error for Error {
64 /// A helper type for formatting nice error messages.
68 /// markers pointing out the position where an error occurred.
71 /// The original regex pattern in which the error occurred.
73 /// The error kind. It must impl fmt::Display.
75 /// The primary span of the error.
77 /// An auxiliary and optional span, in case the error needs to point to
110 writeln!(f, "regex parse error:")?;
115 // If we have error spans that cover multiple lines, then we just
130 write!(f, "error: {}", self.err)?;
132 writeln!(f, "regex parse error:")?;
135 write!(f, "error: {}", self.err)?;
141 /// This type represents an arbitrary number of error spans in a way that makes
143 /// exactly where the error occurred in the regex pattern.")
145 /// Technically, we can only ever have two spans given our current error
158 /// All error spans that occur on a single line. This sequence always has
163 /// All error spans that occur over one or more lines. That is, the start
307 // This test checks that the error formatter doesn't panic.
317 regex parse error:
320 error: repetition quantifier expects a valid decimal