Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Jul 20, 2023
1 parent 5b0b922 commit a46a7ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_expand/src/proc_macro_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl server::FreeFunctions for Rustc<'_, '_> {
.insert((Symbol::intern(var), value.map(Symbol::intern)));
}

fn track_fs_path(&mut self, path: &str) {
fn track_path(&mut self, path: &str) {
self.sess().file_depinfo.borrow_mut().insert(Symbol::intern(path));
}

Expand Down
2 changes: 1 addition & 1 deletion library/proc_macro/src/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ macro_rules! with_api {
FreeFunctions {
fn drop($self: $S::FreeFunctions);
fn track_env_var(var: &str, value: Option<&str>);
fn track_fs_path(path: &str);
fn track_path(path: &str);
fn literal_from_str(s: &str) -> Result<Literal<$S::Span, $S::Symbol>, ()>;
fn emit_diagnostic(diagnostic: Diagnostic<$S::Span>);
},
Expand Down
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ pub mod tracked {
pub fn path<P: AsRef<Path>>(path: P) -> Result<(), ()> {
let path: &Path = path.as_ref();
if let Some(path) = path.to_str() {
crate::bridge::client::FreeFunctions::track_fs_path(path);
crate::bridge::client::FreeFunctions::track_path(path);
Ok(())
} else {
Err(())
Expand Down

0 comments on commit a46a7ba

Please sign in to comment.