Rollup merge of #99516 - m-ou-se:proc-macro-tracked-tracking-issue, r=Mark-Simulacrum
Use new tracking issue for proc_macro::tracked_*.
This commit is contained in:
commit
a5a681100c
@ -1484,7 +1484,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
}
|
||||
|
||||
/// 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;
|
||||
@ -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);
|
||||
@ -1504,13 +1504,13 @@ pub fn var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> Result<String, VarError> {
|
||||
}
|
||||
|
||||
/// 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…
Reference in New Issue
Block a user