Skip to content

Commit 2ab0080

Browse files
committed
fix clippy driver
1 parent 1112eb7 commit 2ab0080

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
@@ -80,7 +80,7 @@ fn track_files(parse_sess: &mut ParseSess) {
8080
// Used by `clippy::cargo` lints and to determine the MSRV. `cargo clippy` executes `clippy-driver`
8181
// with the current directory set to `CARGO_MANIFEST_DIR` so a relative path is fine
8282
if Path::new("Cargo.toml").exists() {
83-
file_depinfo.insert(Symbol::intern("Cargo.toml"));
83+
file_depinfo.insert(std::path::PathBuf::from("Cargo.toml"));
8484
}
8585

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

0 commit comments

Comments
 (0)