Lines Matching defs:error
50 /// translator will return an error).
54 /// the parser to return an error. Namely, a negated ASCII word boundary
124 /// error is returned.
128 /// correct translation, but is used for error reporting.
326 return Err(self.error(
341 return Err(self.error(
538 self.error(
544 self.error(
610 /// Create a new error with the given span and error type.
611 fn error(&self, span: Span, kind: ErrorKind) -> Error {
649 /// an error.
662 return Err(self.error(lit.span, ErrorKind::InvalidUtf8));
669 return Err(self.error(span, ErrorKind::UnicodeNotAllowed));
683 self.error(span, ErrorKind::UnicodeCaseUnavailable)
693 self.error(span, ErrorKind::UnicodeCaseUnavailable)
698 return Err(self.error(span, ErrorKind::UnicodeNotAllowed));
717 return Err(self.error(span, ErrorKind::InvalidUtf8));
760 self.error(asst.span, ErrorKind::InvalidUtf8)
816 self.error(ast_class.span, ErrorKind::UnicodeNotAllowed)
839 .error(ast_class.span, ErrorKind::EmptyClassNotAllowed);
914 /// Converts the given Unicode specific error to an HIR translation error.
916 /// The span given should approximate the position at which an error would
927 self.error(sp, ErrorKind::UnicodePropertyNotFound)
930 self.error(sp, ErrorKind::UnicodePropertyValueNotFound)
933 self.error(sp, ErrorKind::UnicodePerlClassNotFound)
951 self.error(span.clone(), ErrorKind::UnicodeCaseUnavailable)
977 return Err(self.error(span.clone(), ErrorKind::InvalidUtf8));
994 Err(self.error(ast.span, ErrorKind::UnicodeNotAllowed))