Skip to content

Commit

Permalink
Use new tracking issue for proc_macro::tracked_*.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jul 20, 2022
1 parent acdcdfb commit 12ff7a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ impl fmt::Debug for Literal {
}

/// Tracked access to environment variables.
#[unstable(feature = "proc_macro_tracked_env", issue = "74690")]
#[unstable(feature = "proc_macro_tracked_env", issue = "99515")]
pub mod tracked_env {
use std::env::{self, VarError};
use std::ffi::OsStr;
Expand All @@ -1395,7 +1395,7 @@ pub mod tracked_env {
/// compilation, and will be able to rerun the build when the value of that variable changes.
/// Besides the dependency tracking this function should be equivalent to `env::var` from the
/// standard library, except that the argument must be UTF-8.
#[unstable(feature = "proc_macro_tracked_env", issue = "74690")]
#[unstable(feature = "proc_macro_tracked_env", issue = "99515")]
pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError> {
let key: &str = key.as_ref();
let value = env::var(key);
Expand All @@ -1405,13 +1405,13 @@ pub mod tracked_env {
}

/// Tracked access to additional files.
#[unstable(feature = "track_path", issue = "73921")]
#[unstable(feature = "track_path", issue = "99515")]
pub mod tracked_path {

/// Track a file explicitly.
///
/// Commonly used for tracking asset preprocessing.
#[unstable(feature = "track_path", issue = "73921")]
#[unstable(feature = "track_path", issue = "99515")]
pub fn path<P: AsRef<str>>(path: P) {
let path: &str = path.as_ref();
crate::bridge::client::FreeFunctions::track_path(path);
Expand Down

0 comments on commit 12ff7a0

Please sign in to comment.