@@ -49,10 +49,10 @@ enum SharedResource<'a> {
49
49
///
50
50
/// It has a resource suffix.
51
51
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 .
53
53
///
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 } ,
56
56
}
57
57
58
58
impl SharedResource < ' _ > {
@@ -61,15 +61,15 @@ impl SharedResource<'_> {
61
61
match self {
62
62
Unversioned { name }
63
63
| ToolchainSpecific { basename : name }
64
- | CrateSpecific { basename : name } => Path :: new ( name) . extension ( ) ,
64
+ | InvocationSpecific { basename : name } => Path :: new ( name) . extension ( ) ,
65
65
}
66
66
}
67
67
68
68
fn path ( & self , cx : & Context < ' _ > ) -> PathBuf {
69
69
match self {
70
70
SharedResource :: Unversioned { name } => cx. dst . join ( name) ,
71
71
SharedResource :: ToolchainSpecific { basename } => cx. suffix_path ( basename) ,
72
- SharedResource :: CrateSpecific { basename } => cx. suffix_path ( basename) ,
72
+ SharedResource :: InvocationSpecific { basename } => cx. suffix_path ( basename) ,
73
73
}
74
74
}
75
75
@@ -80,7 +80,7 @@ impl SharedResource<'_> {
80
80
let kind = match self {
81
81
SharedResource :: Unversioned { .. } => EmitType :: Unversioned ,
82
82
SharedResource :: ToolchainSpecific { .. } => EmitType :: Toolchain ,
83
- SharedResource :: CrateSpecific { .. } => EmitType :: CrateSpecific ,
83
+ SharedResource :: InvocationSpecific { .. } => EmitType :: InvocationSpecific ,
84
84
} ;
85
85
emit. contains ( & kind)
86
86
}
@@ -165,7 +165,7 @@ pub(super) fn write_shared(
165
165
// Crate resources should always be dynamic.
166
166
let write_crate = |p : & _ , make_content : & dyn Fn ( ) -> Result < Vec < u8 > , Error > | {
167
167
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 )
169
169
} ;
170
170
171
171
// Add all the static files. These may already exist, but we just
0 commit comments