pub enum ExprLowerError {
Type(HirLowerError),
ModuleResolve {
source: ModuleResolveError,
span: Span,
},
InvalidScopedNameSegment {
segment: String,
source: NameAtomError,
span: Span,
},
UnknownLocalRef {
name: LocalName,
span: Span,
},
UnknownGraphRef {
name: ScopedName,
span: Span,
},
TooManyLocals {
span: Span,
},
EmptyMapEntry {
span: Span,
},
ExtraMapVariant {
index_name: IndexName,
variant_name: IndexVariantName,
span: Span,
},
DuplicateLocalBinding {
name: LocalName,
first: Span,
duplicate: Span,
},
UnknownFunction {
path: String,
span: Span,
},
WrongArity {
name: FnName,
expected: usize,
got: usize,
span: Span,
},
UnknownPattern {
path: String,
span: Span,
},
}Expand description
Errors produced while lowering syntax expressions into HIR.
Variants§
Type(HirLowerError)
A type-level generic argument failed to lower.
ModuleResolve
A module-aware lookup failed at an expression use site.
InvalidScopedNameSegment
A structured diagnostic name contained a segment that cannot be a source name atom.
UnknownLocalRef
A local reference had no lexical binding in scope.
UnknownGraphRef
A graph reference (@name) did not resolve to any declaration.
TooManyLocals
A single expression tree introduced more local bindings than HIR can index.
EmptyMapEntry
A map literal entry unexpectedly had no keys after syntax lowering.
ExtraMapVariant
A map literal used a key variant that is not declared by its index.
DuplicateLocalBinding
One lexical scope introduced the same local name twice.
UnknownFunction
A function call could not be resolved to a built-in function.
WrongArity
A built-in function was called with the wrong number of arguments.
UnknownPattern
A path-pattern could not be resolved to a constructor or index label.
Trait Implementations§
Source§impl Clone for ExprLowerError
impl Clone for ExprLowerError
Source§fn clone(&self) -> ExprLowerError
fn clone(&self) -> ExprLowerError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExprLowerError
impl Debug for ExprLowerError
Source§impl Display for ExprLowerError
impl Display for ExprLowerError
impl Eq for ExprLowerError
Source§impl Error for ExprLowerError
impl Error for ExprLowerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<HirLowerError> for ExprLowerError
impl From<HirLowerError> for ExprLowerError
Source§fn from(source: HirLowerError) -> Self
fn from(source: HirLowerError) -> Self
Source§impl PartialEq for ExprLowerError
impl PartialEq for ExprLowerError
Source§fn eq(&self, other: &ExprLowerError) -> bool
fn eq(&self, other: &ExprLowerError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExprLowerError
Auto Trait Implementations§
impl Freeze for ExprLowerError
impl RefUnwindSafe for ExprLowerError
impl Send for ExprLowerError
impl Sync for ExprLowerError
impl Unpin for ExprLowerError
impl UnsafeUnpin for ExprLowerError
impl UnwindSafe for ExprLowerError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.