Skip to content

Commit 7b4ac2f

Browse files
committed
fix clippy driver
1 parent a750c03 commit 7b4ac2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/clippy/src/driver.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn track_files(parse_sess: &mut ParseSess) {
7878
// Used by `clippy::cargo` lints and to determine the MSRV. `cargo clippy` executes `clippy-driver`
7979
// with the current directory set to `CARGO_MANIFEST_DIR` so a relative path is fine
8080
if Path::new("Cargo.toml").exists() {
81-
file_depinfo.insert(Symbol::intern("Cargo.toml"));
81+
file_depinfo.insert(std::path::PathBuf::from("Cargo.toml"));
8282
}
8383

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

0 commit comments

Comments
 (0)