Use new tracking issue for proc_macro::tracked_*.
This commit is contained in:
parent
acdcdfb61b
commit
12ff7a0d66
@ -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;
|
||||
@ -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);
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user