Skip to content

Commit

Permalink
Rollup merge of rust-lang#99516 - m-ou-se:proc-macro-tracked-tracking…
Browse files Browse the repository at this point in the history
…-issue, r=Mark-Simulacrum

Use new tracking issue for proc_macro::tracked_*.
  • Loading branch information
matthiaskrgr authored Jul 20, 2022
2 parents 2638f3a + 12ff7a0 commit a5a6811
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 @@ -1484,7 +1484,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 @@ -1494,7 +1494,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 @@ -1504,13 +1504,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 a5a6811

Please sign in to comment.