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).
TrailingWhitespace
Line ends in whitespace.
BadIssue(Issue)
TODO 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.
IoError(Error)
An io error during reading or writing.
ParseError
Parse error occured 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.
Trait Implementations
impl Debug for ErrorKind
[src]
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for ErrorKind
[src]
impl From<Error> for ErrorKind