Enum rustfmt_nightly::ErrorKind [−][src]
pub enum ErrorKind {
LineOverflow(usize, usize),
TrailingWhitespace,
BadIssue(Issue),
LicenseCheck,
DeprecatedAttr,
BadAttr,
IoError(Error),
ParseError,
VersionMismatch,
LostComment,
}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).
TrailingWhitespaceLine ends in whitespace.
BadIssue(Issue)TODO or FIXME item without an issue number.
LicenseCheckLicense check has failed.
DeprecatedAttrUsed deprecated skip attribute.
BadAttrUsed a rustfmt:: attribute other than skip.
IoError(Error)An io error during reading or writing.
ParseErrorParse error occured when parsing the Input.
VersionMismatchThe user mandated a version and the current version of Rustfmt does not satisfy that requirement.
LostCommentIf we had formatted the given node, then we would have lost a comment.
Trait Implementations
impl Debug for ErrorKind[src]
impl Debug for ErrorKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Error> for ErrorKind[src]
impl From<Error> for ErrorKind