[][src]Enum rune::CompileErrorKind

pub enum CompileErrorKind {
    Custom {
        message: &'static str,
    },
    IrError {
        error: IrErrorKind,
    },
    QueryError {
        error: QueryErrorKind,
    },
    ParseError {
        error: ParseErrorKind,
    },
    InsertMetaError {
        error: InsertMetaError,
    },
    ResolveError {
        error: ResolveErrorKind,
    },
    ModFileError {
        path: PathBuf,
        error: Error,
    },
    ConstError {
        msg: &'static str,
    },
    Experimental {
        msg: &'static str,
    },
    ModNotFound {
        path: PathBuf,
    },
    ModAlreadyLoaded {
        item: Item,
        existing: (SourceId, Span),
    },
    VariableConflict {
        name: String,
        existing_span: Span,
    },
    MissingMacro {
        item: Item,
    },
    CallMacroError {
        item: Item,
        error: Error,
    },
    MissingLocal {
        name: String,
    },
    MissingItem {
        item: Item,
    },
    UnsupportedGlobal,
    UnsupportedModuleSource,
    UnsupportedModuleRoot {
        root: PathBuf,
    },
    UnsupportedModuleItem {
        item: Item,
    },
    UnsupportedWildcard,
    UnsupportedSelf,
    UnsupportedUnaryOp {
        op: UnOp,
    },
    UnsupportedBinaryOp {
        op: BinOp,
    },
    UnsupportedLitObject {
        meta: CompileMeta,
    },
    LitObjectMissingField {
        field: Box<str>,
        item: Item,
    },
    LitObjectNotField {
        field: Box<str>,
        item: Item,
    },
    UnsupportedAssignExpr,
    UnsupportedBinaryExpr,
    UnsupportedRef,
    UnsupportedSelectPattern,
    BadFieldAccess,
    UnsupportedArgumentCount {
        meta: CompileMeta,
        expected: usize,
        actual: usize,
    },
    UnsupportedPattern {
        meta: CompileMeta,
    },
    UnsupportedPatternRest,
    UnsupportedPatternExpr,
    UnsupportedBinding,
    MatchFloatInPattern,
    DuplicateObjectKey {
        existing: Span,
        object: Span,
    },
    YieldOutsideFunction,
    AwaitOutsideFunction,
    InstanceFunctionOutsideImpl,
    MissingPreludeModule {
        item: Item,
    },
    UnsupportedTupleIndex {
        number: Number,
    },
    BreakOutsideOfLoop,
    ContinueOutsideOfLoop,
    SelectMultipleDefaults,
    ExpectedBlockSemiColon {
        followed_span: Span,
    },
    ExpectedMacroSemi,
    FnConstAsyncConflict,
    BlockConstAsyncConflict,
    FnConstNotGenerator,
    ClosureKind,
    UnsupportedCrate,
    UnsupportedSelfType,
    UnsupportedSelfValue,
    UnsupportedSuper,
    UnsupportedSuperInSelfType,
    IllegalUseSegment,
    UseAliasNotSupported,
    FunctionConflict {
        existing: DebugSignature,
    },
    FunctionReExportConflict {
        hash: Hash,
    },
    ConstantConflict {
        item: Item,
        hash: Hash,
    },
    UnsupportedMeta {
        existing: Item,
    },
    StaticStringMissing {
        hash: Hash,
        slot: usize,
    },
    StaticBytesMissing {
        hash: Hash,
        slot: usize,
    },
    StaticStringHashConflict {
        hash: Hash,
        current: String,
        existing: String,
    },
    StaticBytesHashConflict {
        hash: Hash,
        current: Vec<u8>,
        existing: Vec<u8>,
    },
    StaticObjectKeysMissing {
        hash: Hash,
        slot: usize,
    },
    StaticObjectKeysHashConflict {
        hash: Hash,
        current: Box<[String]>,
        existing: Box<[String]>,
    },
    DuplicateLabel {
        label: Label,
    },
    MissingLabel {
        label: Label,
    },
    MissingLoopLabel {
        label: Box<str>,
    },
    BaseOverflow,
    OffsetOverflow,
    ExpectedLeadingPathSegment,
    UnsupportedVisibility,
    ExpectedMeta {
        expected: &'static str,
        meta: CompileMeta,
    },
    NoSuchBuiltInMacro {
        name: Box<str>,
    },
    VariableMoved {
        moved_at: Span,
    },
    UnsupportedGenerics,
    NestedTest {
        nested_span: Span,
    },
}

Compiler error.

Variants

Custom

Fields of Custom

message: &'static str
IrError

Fields of IrError

error: IrErrorKind
QueryError

Fields of QueryError

error: QueryErrorKind
ParseError

Fields of ParseError

error: ParseErrorKind
InsertMetaError

Fields of InsertMetaError

error: InsertMetaError
ResolveError

Fields of ResolveError

error: ResolveErrorKind
ModFileError

Fields of ModFileError

path: PathBuferror: Error
ConstError

Fields of ConstError

msg: &'static str
Experimental

Fields of Experimental

msg: &'static str
ModNotFound

Fields of ModNotFound

path: PathBuf
ModAlreadyLoaded

Fields of ModAlreadyLoaded

item: Itemexisting: (SourceId, Span)
VariableConflict

Fields of VariableConflict

name: Stringexisting_span: Span
MissingMacro

Fields of MissingMacro

item: Item
CallMacroError

Fields of CallMacroError

item: Itemerror: Error
MissingLocal

Fields of MissingLocal

name: String
MissingItem

Fields of MissingItem

item: Item
UnsupportedGlobal
UnsupportedModuleSource
UnsupportedModuleRoot

Fields of UnsupportedModuleRoot

root: PathBuf
UnsupportedModuleItem

Fields of UnsupportedModuleItem

item: Item
UnsupportedWildcard
UnsupportedSelf
UnsupportedUnaryOp

Fields of UnsupportedUnaryOp

op: UnOp
UnsupportedBinaryOp

Fields of UnsupportedBinaryOp

op: BinOp
UnsupportedLitObject

Fields of UnsupportedLitObject

meta: CompileMeta
LitObjectMissingField

Fields of LitObjectMissingField

field: Box<str>item: Item
LitObjectNotField

Fields of LitObjectNotField

field: Box<str>item: Item
UnsupportedAssignExpr
UnsupportedBinaryExpr
UnsupportedRef
UnsupportedSelectPattern
BadFieldAccess
UnsupportedArgumentCount

Fields of UnsupportedArgumentCount

meta: CompileMetaexpected: usizeactual: usize
UnsupportedPattern

Fields of UnsupportedPattern

meta: CompileMeta
UnsupportedPatternRest
UnsupportedPatternExpr
UnsupportedBinding
MatchFloatInPattern
DuplicateObjectKey

Fields of DuplicateObjectKey

existing: Spanobject: Span
YieldOutsideFunction
AwaitOutsideFunction
InstanceFunctionOutsideImpl
MissingPreludeModule

Fields of MissingPreludeModule

item: Item
UnsupportedTupleIndex

Fields of UnsupportedTupleIndex

number: Number
BreakOutsideOfLoop
ContinueOutsideOfLoop
SelectMultipleDefaults
ExpectedBlockSemiColon

Fields of ExpectedBlockSemiColon

followed_span: Span
ExpectedMacroSemi
FnConstAsyncConflict
BlockConstAsyncConflict
FnConstNotGenerator
ClosureKind
UnsupportedCrate
UnsupportedSelfType
UnsupportedSelfValue
UnsupportedSuper
UnsupportedSuperInSelfType
IllegalUseSegment
UseAliasNotSupported
FunctionConflict

Fields of FunctionConflict

existing: DebugSignature
FunctionReExportConflict

Fields of FunctionReExportConflict

hash: Hash
ConstantConflict

Fields of ConstantConflict

item: Itemhash: Hash
UnsupportedMeta

Fields of UnsupportedMeta

existing: Item
StaticStringMissing

Fields of StaticStringMissing

hash: Hashslot: usize
StaticBytesMissing

Fields of StaticBytesMissing

hash: Hashslot: usize
StaticStringHashConflict

Fields of StaticStringHashConflict

hash: Hashcurrent: Stringexisting: String
StaticBytesHashConflict

Fields of StaticBytesHashConflict

hash: Hashcurrent: Vec<u8>existing: Vec<u8>
StaticObjectKeysMissing

Fields of StaticObjectKeysMissing

hash: Hashslot: usize
StaticObjectKeysHashConflict

Fields of StaticObjectKeysHashConflict

hash: Hashcurrent: Box<[String]>existing: Box<[String]>
DuplicateLabel

Fields of DuplicateLabel

label: Label
MissingLabel

Fields of MissingLabel

label: Label
MissingLoopLabel

Fields of MissingLoopLabel

label: Box<str>
BaseOverflow
OffsetOverflow
ExpectedLeadingPathSegment
UnsupportedVisibility
ExpectedMeta

Fields of ExpectedMeta

expected: &'static strmeta: CompileMeta
NoSuchBuiltInMacro

Fields of NoSuchBuiltInMacro

name: Box<str>
VariableMoved

Fields of VariableMoved

moved_at: Span
UnsupportedGenerics
NestedTest

Fields of NestedTest

nested_span: Span

Trait Implementations

impl Debug for CompileErrorKind[src]

impl Display for CompileErrorKind[src]

impl Error for CompileErrorKind[src]

impl From<IrErrorKind> for CompileErrorKind[src]

impl From<ParseErrorKind> for CompileErrorKind[src]

impl From<QueryErrorKind> for CompileErrorKind[src]

impl From<ResolveErrorKind> for CompileErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.