Track clippy.toml and Cargo.toml in file_depinfo

Causes cargo to re-run clippy when those paths are modified

Also tracks the path to `clippy-driver` in debug mode to remove the
workarounds in `cargo dev lint` and `lintcheck`
This commit is contained in:
Alex Macleod 2022-10-25 11:32:49 +00:00
parent 5b09d4e1f7
commit bd8369089c
6 changed files with 47 additions and 59 deletions

View file

@ -390,6 +390,10 @@ define_Conf! {
}
/// Search for the configuration file.
///
/// # Errors
///
/// Returns any unexpected filesystem error encountered when searching for the config file
pub fn lookup_conf_file() -> io::Result<Option<PathBuf>> {
/// Possible filename to search for.
const CONFIG_FILE_NAMES: [&str; 2] = [".clippy.toml", "clippy.toml"];