pub enum LowerErrorKind {
JavaScriptSourceNeedsCompatibility {
script_kind: ScriptKind,
},
JsonSourceNotExecutable,
MissingSyntax {
expected: NodeKind,
},
InvalidNumericLiteral,
InvalidBigIntLiteral,
InvalidRegexLiteral,
IllFormedMetadataString,
Unsupported(UnsupportedConstruct),
Capacity(CapacityLimit),
Verify(VerifyError),
}Expand description
The closed set of lowering failures.
Variants§
JavaScriptSourceNeedsCompatibility
A JavaScript source was lowered without javascript_compatibility.
Fields
§
script_kind: ScriptKindJsonSourceNotExecutable
JSON sources have no executable statement semantics.
MissingSyntax
A parser recovery node reached lowering.
InvalidNumericLiteral
A numeric literal lexeme did not denote a finite deterministic value.
InvalidBigIntLiteral
A bigint literal lexeme did not denote a canonical integer value.
InvalidRegexLiteral
A regular-expression literal lexeme was malformed.
IllFormedMetadataString
A module linkage name contained an unpaired UTF-16 surrogate.
Unsupported(UnsupportedConstruct)
A runtime construct the current instruction set cannot express.
Capacity(CapacityLimit)
A structural production capacity ran out.
Verify(VerifyError)
The assembled module failed bytecode verification. Lowering maintains every verifier invariant by construction, so this is defensive.
Trait Implementations§
Source§impl Clone for LowerErrorKind
impl Clone for LowerErrorKind
Source§fn clone(&self) -> LowerErrorKind
fn clone(&self) -> LowerErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LowerErrorKind
impl Debug for LowerErrorKind
Source§impl Display for LowerErrorKind
impl Display for LowerErrorKind
impl Eq for LowerErrorKind
Source§impl PartialEq for LowerErrorKind
impl PartialEq for LowerErrorKind
impl StructuralPartialEq for LowerErrorKind
Auto Trait Implementations§
impl Freeze for LowerErrorKind
impl RefUnwindSafe for LowerErrorKind
impl Send for LowerErrorKind
impl Sync for LowerErrorKind
impl Unpin for LowerErrorKind
impl UnsafeUnpin for LowerErrorKind
impl UnwindSafe for LowerErrorKind
Blanket Implementations§
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
Mutably borrows from an owned value. Read more