Enum rustfmt_nightly::ErrorKind [−][src]
pub enum ErrorKind {
LineOverflow(usize, usize),
TrailingWhitespace,
BadIssue(Issue),
LicenseCheck,
DeprecatedAttr,
BadAttr,
IoError(Error),
ModuleResolutionError(ModuleResolutionError),
ParseError,
VersionMismatch,
LostComment,
InvalidGlobPattern(Error),
}
Expand description
The various errors that can occur during formatting. Note that not all of these can currently be propagated to clients.
Variants
Line has exceeded character limit (found, maximum).
Line ends in whitespace.
BadIssue(Issue)
TODO or FIXME item without an issue number.
Tuple Fields of BadIssue
0: Issue
License check has failed.
Used deprecated skip attribute.
Used a rustfmt:: attribute other than skip or skip::macros.
IoError(Error)
An io error during reading or writing.
Tuple Fields of IoError
0: Error
ModuleResolutionError(ModuleResolutionError)
Error during module resolution.
Tuple Fields of ModuleResolutionError
Parse error occurred when parsing the input.
The user mandated a version and the current version of Rustfmt does not satisfy that requirement.
If we had formatted the given node, then we would have lost a comment.
Invalid glob pattern in ignore
configuration option.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes
Size for each variant:
LineOverflow
: 23 bytesTrailingWhitespace
: 0 bytesBadIssue
: 2 bytesLicenseCheck
: 0 bytesDeprecatedAttr
: 0 bytesBadAttr
: 0 bytesIoError
: 23 bytesModuleResolutionError
: 63 bytesParseError
: 0 bytesVersionMismatch
: 0 bytesLostComment
: 0 bytesInvalidGlobPattern
: 63 bytes