Skip to content

Commit

Permalink
fix clippy driver
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Aug 1, 2023
1 parent a750c03 commit 7b4ac2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/clippy/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn track_files(parse_sess: &mut ParseSess) {
// Used by `clippy::cargo` lints and to determine the MSRV. `cargo clippy` executes `clippy-driver`
// with the current directory set to `CARGO_MANIFEST_DIR` so a relative path is fine
if Path::new("Cargo.toml").exists() {
file_depinfo.insert(Symbol::intern("Cargo.toml"));
file_depinfo.insert(std::path::PathBuf::from("Cargo.toml"));
}

// `clippy.toml` will be automatically tracked as it's loaded with `sess.source_map().load_file()`
Expand All @@ -93,7 +93,7 @@ fn track_files(parse_sess: &mut ParseSess) {
if let Ok(current_exe) = env::current_exe()
&& let Some(current_exe) = current_exe.to_str()
{
file_depinfo.insert(Symbol::intern(current_exe));
file_depinfo.insert(std::path::PathBuf::from(current_exe));
}
}
}
Expand Down

0 comments on commit 7b4ac2f

Please sign in to comment.