Enum rune::CompileErrorKind [−][src]
pub enum CompileErrorKind {}Show 82 variants
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, },
Expand description
Compiler error.
Variants
Fields of Custom
message: &'static str
Fields of IrError
error: IrErrorKind
Fields of QueryError
error: QueryErrorKind
Fields of ParseError
error: ParseErrorKind
Fields of ResolveError
error: ResolveErrorKind
Fields of ConstError
msg: &'static str
Fields of Experimental
msg: &'static str
Fields of ModNotFound
path: PathBuf
Fields of MissingMacro
item: Item
Fields of MissingLocal
name: String
Fields of MissingItem
item: Item
Fields of UnsupportedModuleRoot
root: PathBuf
Fields of UnsupportedModuleItem
item: Item
Fields of UnsupportedUnaryOp
op: UnOp
Fields of UnsupportedBinaryOp
op: BinOp
Fields of UnsupportedLitObject
meta: CompileMeta
Fields of UnsupportedArgumentCount
Fields of UnsupportedPattern
meta: CompileMeta
Fields of MissingPreludeModule
item: Item
Fields of UnsupportedTupleIndex
number: Number
Fields of ExpectedBlockSemiColon
followed_span: Span
Fields of FunctionConflict
existing: DebugSignature
Fields of FunctionReExportConflict
hash: Hash
Fields of UnsupportedMeta
existing: Item
Fields of DuplicateLabel
label: Label
Fields of MissingLabel
label: Label
Fields of ExpectedMeta
expected: &'static str
meta: CompileMeta
Fields of VariableMoved
moved_at: Span
Fields of NestedTest
nested_span: Span
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.