Skip to content

Commit a46a7ba

Browse files
committed
fixup
1 parent 5b0b922 commit a46a7ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_expand/src/proc_macro_server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ impl server::FreeFunctions for Rustc<'_, '_> {
402402
.insert((Symbol::intern(var), value.map(Symbol::intern)));
403403
}
404404

405-
fn track_fs_path(&mut self, path: &str) {
405+
fn track_path(&mut self, path: &str) {
406406
self.sess().file_depinfo.borrow_mut().insert(Symbol::intern(path));
407407
}
408408

library/proc_macro/src/bridge/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ macro_rules! with_api {
5757
FreeFunctions {
5858
fn drop($self: $S::FreeFunctions);
5959
fn track_env_var(var: &str, value: Option<&str>);
60-
fn track_fs_path(path: &str);
60+
fn track_path(path: &str);
6161
fn literal_from_str(s: &str) -> Result<Literal<$S::Span, $S::Symbol>, ()>;
6262
fn emit_diagnostic(diagnostic: Diagnostic<$S::Span>);
6363
},

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ pub mod tracked {
14791479
pub fn path<P: AsRef<Path>>(path: P) -> Result<(), ()> {
14801480
let path: &Path = path.as_ref();
14811481
if let Some(path) = path.to_str() {
1482-
crate::bridge::client::FreeFunctions::track_fs_path(path);
1482+
crate::bridge::client::FreeFunctions::track_path(path);
14831483
Ok(())
14841484
} else {
14851485
Err(())

0 commit comments

Comments
 (0)