File tree 2 files changed +14
-0
lines changed
src/tools/run-make-support/src
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,13 @@ impl Rustc {
176
176
self
177
177
}
178
178
179
+ /// Specify the crate name.
180
+ pub fn crate_name ( & mut self , name : & str ) -> & mut Self {
181
+ self . cmd . arg ( "--crate-name" ) ;
182
+ self . cmd . arg ( name) ;
183
+ self
184
+ }
185
+
179
186
/// Get the [`Output`][::std::process::Output] of the finished process.
180
187
#[ track_caller]
181
188
pub fn command_output ( & mut self ) -> :: std:: process:: Output {
Original file line number Diff line number Diff line change @@ -114,6 +114,13 @@ impl Rustdoc {
114
114
self
115
115
}
116
116
117
+ /// Specify the crate name.
118
+ pub fn crate_name ( & mut self , name : & str ) -> & mut Self {
119
+ self . cmd . arg ( "--crate-name" ) ;
120
+ self . cmd . arg ( name) ;
121
+ self
122
+ }
123
+
117
124
#[ track_caller]
118
125
pub fn run_fail_assert_exit_code ( & mut self , code : i32 ) -> Output {
119
126
let caller_location = std:: panic:: Location :: caller ( ) ;
You can’t perform that action at this time.
0 commit comments