@@ -1594,9 +1594,14 @@ impl fmt::Debug for Literal {
15941594 }
15951595}
15961596
1597- /// Tracked access to environment variables.
1598- #[ unstable( feature = "proc_macro_tracked_env" , issue = "99515" ) ]
1599- pub mod tracked_env {
1597+ #[ unstable(
1598+ feature = "proc_macro_tracked_path" ,
1599+ issue = "99515" ,
1600+ implied_by = "proc_macro_tracked_env"
1601+ ) ]
1602+ /// Functionality for adding environment state to the build dependency info.
1603+ pub mod tracked {
1604+
16001605 use std:: env:: { self , VarError } ;
16011606 use std:: ffi:: OsStr ;
16021607
@@ -1606,23 +1611,18 @@ pub mod tracked_env {
16061611 /// Besides the dependency tracking this function should be equivalent to `env::var` from the
16071612 /// standard library, except that the argument must be UTF-8.
16081613 #[ unstable( feature = "proc_macro_tracked_env" , issue = "99515" ) ]
1609- pub fn var < K : AsRef < OsStr > + AsRef < str > > ( key : K ) -> Result < String , VarError > {
1614+ pub fn env_var < K : AsRef < OsStr > + AsRef < str > > ( key : K ) -> Result < String , VarError > {
16101615 let key: & str = key. as_ref ( ) ;
16111616 let value = crate :: bridge:: client:: FreeFunctions :: injected_env_var ( key)
16121617 . map_or_else ( || env:: var ( key) , Ok ) ;
16131618 crate :: bridge:: client:: FreeFunctions :: track_env_var ( key, value. as_deref ( ) . ok ( ) ) ;
16141619 value
16151620 }
1616- }
1617-
1618- /// Tracked access to additional files.
1619- #[ unstable( feature = "track_path" , issue = "99515" ) ]
1620- pub mod tracked_path {
16211621
1622- /// Track a file explicitly.
1622+ /// Track a file or directory explicitly.
16231623 ///
16241624 /// Commonly used for tracking asset preprocessing.
1625- #[ unstable( feature = "track_path " , issue = "99515" ) ]
1625+ #[ unstable( feature = "proc_macro_tracked_path " , issue = "99515" ) ]
16261626 pub fn path < P : AsRef < str > > ( path : P ) {
16271627 let path: & str = path. as_ref ( ) ;
16281628 crate :: bridge:: client:: FreeFunctions :: track_path ( path) ;
0 commit comments