#![deny(rust_2018_idioms)]
#![warn(unreachable_pub)]
#![recursion_limit = "256"]
+#![allow(clippy::match_like_matches_macro)]
#[macro_use]
extern crate derive_new;
use std::path::PathBuf;
use std::rc::Rc;
-use ignore;
use rustc_ast::ast;
use rustc_span::{symbol, DUMMY_SP};
use thiserror::Error;
impl ErrorKind {
fn is_comment(&self) -> bool {
- match self {
- ErrorKind::LostComment => true,
- _ => false,
- }
+ matches!(self, ErrorKind::LostComment)
}
}