fn is_unexpected_compiler_message(&self,
                                      actual_error: &Error,
                                      expect_help: bool,
                                      expect_note: bool)
                                      -> bool {
        match actual_error.kind {
            Some(ErrorKind::Help) => expect_help,
            Some(ErrorKind::Note) => expect_note,
            Some(ErrorKind::Error) => true,
            Some(ErrorKind::Warning) => true,
            Some(ErrorKind::Suggestion) => false,
            None => false
        }
    }
/// Returns true if we should report an error about `actual_error`,
/// which did not match any of the expected error. We always require
/// errors/warnings to be explicitly listed, but only require
/// helps/notes if there are explicit helps/notes given.
Returns true if we should report an error about `actual_error`,
which did not match any of the expected error. We always require
errors/warnings to be explicitly listed, but only require
helps/notes if there are explicit helps/notes given.
Returns true if we should report an error about ` actual_error ` which did not match any of the expected error . We always require errors / warnings to be explicitly listed but only require helps / notes if there are explicit helps / notes given .
fn is_unexpected_compiler_message(&self,
                                      actual_error: &Error,
                                      expect_help: bool,
                                      expect_note: bool)
                                      -> bool {
        match actual_error.kind {
            Some(ErrorKind::Help) => expect_help,
            Some(ErrorKind::Note) => expect_note,
            Some(ErrorKind::Error) => true,
            Some(ErrorKind::Warning) => true,
            Some(ErrorKind::Suggestion) => false,
            None => false
        }
    }
fn is_unexpected_compiler_message ( & self , actual_error : & Error , expect_help : bool , expect_note : bool ) -> bool { match actual_error . kind { Some ( ErrorKind :: Help ) => expect_help , Some ( ErrorKind :: Note ) => expect_note , Some ( ErrorKind :: Error ) => true , Some ( ErrorKind :: Warning ) => true , Some ( ErrorKind :: Suggestion ) => false , None => false } }
Returns true if we should report an error about `actual_error`,
which did not match any of the expected error.
Returns true if we should report an error about ` actual_error ` which did not match any of the expected error .
&self
actual_error
&Error
expect_help
bool
expect_note
bool
&self
actual_error
&Error
expect_help
bool
expect_note
bool