pub enum CompileErrorKind<'src> {
Show 49 variants
AttributeArgumentCountMismatch {
attribute: &'src str,
found: usize,
min: usize,
max: usize,
},
BacktickShebang,
CircularRecipeDependency {
recipe: &'src str,
circle: Vec<&'src str>,
},
CircularVariableDependency {
variable: &'src str,
circle: Vec<&'src str>,
},
DependencyArgumentCountMismatch {
dependency: &'src str,
found: usize,
min: usize,
max: usize,
},
Redefinition {
first: usize,
first_type: &'static str,
name: &'src str,
second_type: &'static str,
},
DuplicateAttribute {
attribute: &'src str,
first: usize,
},
DuplicateParameter {
recipe: &'src str,
parameter: &'src str,
},
DuplicateSet {
setting: &'src str,
first: usize,
},
DuplicateVariable {
variable: &'src str,
},
DuplicateUnexport {
variable: &'src str,
},
ExpectedKeyword {
expected: Vec<Keyword>,
found: Token<'src>,
},
ExportUnexported {
variable: &'src str,
},
ExtraLeadingWhitespace,
ExtraneousAttributes {
count: usize,
},
FunctionArgumentCountMismatch {
function: &'src str,
found: usize,
expected: RangeInclusive<usize>,
},
Include,
InconsistentLeadingWhitespace {
expected: &'src str,
found: &'src str,
},
Internal {
message: String,
},
InvalidAttribute {
item_kind: &'static str,
item_name: &'src str,
attribute: Attribute<'src>,
},
InvalidEscapeSequence {
character: char,
},
MismatchedClosingDelimiter {
close: Delimiter,
open: Delimiter,
open_line: usize,
},
MixedLeadingWhitespace {
whitespace: &'src str,
},
ParameterFollowsVariadicParameter {
parameter: &'src str,
},
ParsingRecursionDepthExceeded,
RequiredParameterFollowsDefaultParameter {
parameter: &'src str,
},
ShebangAndScriptAttribute {
recipe: &'src str,
},
ShellExpansion {
err: LookupError<VarError>,
},
UndefinedVariable {
variable: &'src str,
},
UnexpectedCharacter {
expected: char,
},
UnexpectedClosingDelimiter {
close: Delimiter,
},
UnexpectedEndOfToken {
expected: char,
},
UnexpectedToken {
expected: Vec<TokenKind>,
found: TokenKind,
},
UnicodeEscapeCharacter {
character: char,
},
UnicodeEscapeDelimiter {
character: char,
},
UnicodeEscapeEmpty,
UnicodeEscapeLength {
hex: String,
},
UnicodeEscapeRange {
hex: String,
},
UnicodeEscapeUnterminated,
UnknownAliasTarget {
alias: &'src str,
target: &'src str,
},
UnknownAttribute {
attribute: &'src str,
},
UnknownDependency {
recipe: &'src str,
unknown: &'src str,
},
UnknownFunction {
function: &'src str,
},
UnknownSetting {
setting: &'src str,
},
UnknownStartOfToken,
UnpairedCarriageReturn,
UnterminatedBacktick,
UnterminatedInterpolation,
UnterminatedString,
}
Variantsยง
AttributeArgumentCountMismatch
BacktickShebang
CircularRecipeDependency
CircularVariableDependency
DependencyArgumentCountMismatch
Redefinition
DuplicateAttribute
DuplicateParameter
DuplicateSet
DuplicateVariable
DuplicateUnexport
ExpectedKeyword
ExportUnexported
ExtraLeadingWhitespace
ExtraneousAttributes
FunctionArgumentCountMismatch
Include
InconsistentLeadingWhitespace
Internal
InvalidAttribute
InvalidEscapeSequence
MismatchedClosingDelimiter
MixedLeadingWhitespace
ParameterFollowsVariadicParameter
ParsingRecursionDepthExceeded
RequiredParameterFollowsDefaultParameter
ShebangAndScriptAttribute
ShellExpansion
Fields
ยง
err: LookupError<VarError>
UndefinedVariable
UnexpectedCharacter
UnexpectedClosingDelimiter
UnexpectedEndOfToken
UnexpectedToken
UnicodeEscapeCharacter
UnicodeEscapeDelimiter
UnicodeEscapeEmpty
UnicodeEscapeLength
UnicodeEscapeRange
UnicodeEscapeUnterminated
UnknownAliasTarget
UnknownAttribute
UnknownDependency
UnknownFunction
UnknownSetting
UnknownStartOfToken
UnpairedCarriageReturn
UnterminatedBacktick
UnterminatedInterpolation
UnterminatedString
Trait Implementationsยง
Sourceยงimpl<'src> Debug for CompileErrorKind<'src>
impl<'src> Debug for CompileErrorKind<'src>
Sourceยงimpl<'src> PartialEq for CompileErrorKind<'src>
impl<'src> PartialEq for CompileErrorKind<'src>
impl<'src> StructuralPartialEq for CompileErrorKind<'src>
Auto Trait Implementationsยง
impl<'src> Freeze for CompileErrorKind<'src>
impl<'src> RefUnwindSafe for CompileErrorKind<'src>
impl<'src> Send for CompileErrorKind<'src>
impl<'src> Sync for CompileErrorKind<'src>
impl<'src> Unpin for CompileErrorKind<'src>
impl<'src> UnwindSafe for CompileErrorKind<'src>
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