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
LineOverflow(usize, usize)
Line has exceeded character limit (found, maximum).
TrailingWhitespace
Line ends in whitespace.
BadIssue(Issue)
Tuple Fields
0: IssueTODO or FIXME item without an issue number.
LicenseCheck
License check has failed.
DeprecatedAttr
Used deprecated skip attribute.
BadAttr
Used a rustfmt:: attribute other than skip or skip::macros.
IoError(Error)
Tuple Fields
0: ErrorAn io error during reading or writing.
ModuleResolutionError(ModuleResolutionError)
Tuple Fields
Error during module resolution.
ParseError
Parse error occurred when parsing the input.
VersionMismatch
The user mandated a version and the current version of Rustfmt does not satisfy that requirement.
LostComment
If we had formatted the given node, then we would have lost a comment.
InvalidGlobPattern(Error)
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
