@@ -49,10 +49,10 @@ enum SharedResource<'a> {
4949 ///
5050 /// It has a resource suffix.
5151 ToolchainSpecific { basename : & ' static str } ,
52- /// This file may change for any crate within a build.
52+ /// This file may change for any crate within a build, or based on the CLI arguments .
5353 ///
54- /// This differs from normal crate -specific files because it has a resource suffix.
55- CrateSpecific { basename : & ' a str } ,
54+ /// This differs from normal invocation -specific files because it has a resource suffix.
55+ InvocationSpecific { basename : & ' a str } ,
5656}
5757
5858impl SharedResource < ' _ > {
@@ -61,15 +61,15 @@ impl SharedResource<'_> {
6161 match self {
6262 Unversioned { name }
6363 | ToolchainSpecific { basename : name }
64- | CrateSpecific { basename : name } => Path :: new ( name) . extension ( ) ,
64+ | InvocationSpecific { basename : name } => Path :: new ( name) . extension ( ) ,
6565 }
6666 }
6767
6868 fn path ( & self , cx : & Context < ' _ > ) -> PathBuf {
6969 match self {
7070 SharedResource :: Unversioned { name } => cx. dst . join ( name) ,
7171 SharedResource :: ToolchainSpecific { basename } => cx. suffix_path ( basename) ,
72- SharedResource :: CrateSpecific { basename } => cx. suffix_path ( basename) ,
72+ SharedResource :: InvocationSpecific { basename } => cx. suffix_path ( basename) ,
7373 }
7474 }
7575
@@ -80,7 +80,7 @@ impl SharedResource<'_> {
8080 let kind = match self {
8181 SharedResource :: Unversioned { .. } => EmitType :: Unversioned ,
8282 SharedResource :: ToolchainSpecific { .. } => EmitType :: Toolchain ,
83- SharedResource :: CrateSpecific { .. } => EmitType :: CrateSpecific ,
83+ SharedResource :: InvocationSpecific { .. } => EmitType :: InvocationSpecific ,
8484 } ;
8585 emit. contains ( & kind)
8686 }
@@ -165,7 +165,7 @@ pub(super) fn write_shared(
165165 // Crate resources should always be dynamic.
166166 let write_crate = |p : & _ , make_content : & dyn Fn ( ) -> Result < Vec < u8 > , Error > | {
167167 let content = make_content ( ) ?;
168- cx. write_shared ( SharedResource :: CrateSpecific { basename : p } , content, & options. emit )
168+ cx. write_shared ( SharedResource :: InvocationSpecific { basename : p } , content, & options. emit )
169169 } ;
170170
171171 // Add all the static files. These may already exist, but we just
0 commit comments