Lines Matching refs:Error
10 pub type Result<T> = result::Result<T, Error>;
14 pub enum Error {
17 Parse(ast::Error),
20 Translate(hir::Error),
30 impl From<ast::Error> for Error {
31 fn from(err: ast::Error) -> Error {
32 Error::Parse(err)
36 impl From<hir::Error> for Error {
37 fn from(err: hir::Error) -> Error {
38 Error::Translate(err)
42 impl error::Error for Error {
47 Error::Parse(ref x) => x.description(),
48 Error::Translate(ref x) => x.description(),
54 impl fmt::Display for Error {
57 Error::Parse(ref x) => x.fmt(f),
58 Error::Translate(ref x) => x.fmt(f),
82 impl<'e> From<&'e ast::Error> for Formatter<'e, ast::ErrorKind> {
83 fn from(err: &'e ast::Error) -> Self {
93 impl<'e> From<&'e hir::Error> for Formatter<'e, hir::ErrorKind> {
94 fn from(err: &'e hir::Error) -> Self {