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.
TODO or FIXME item without an issue number.
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.
Error during module resolution.
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.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKindimpl !UnwindSafe for ErrorKindBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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