@@ -134,20 +134,6 @@ fn fails_with_args_to_all_binaries() {
134
134
. run ( ) ;
135
135
}
136
136
137
- #[ cargo_test]
138
- fn fails_with_crate_type_and_without_unstable_options ( ) {
139
- let p = project ( ) . file ( "src/lib.rs" , r#" "# ) . build ( ) ;
140
-
141
- p. cargo ( "rustc --crate-type lib" )
142
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
143
- . with_status ( 101 )
144
- . with_stderr (
145
- "[ERROR] the `crate-type` flag is unstable, pass `-Z unstable-options` to enable it
146
- See https://github.com/rust-lang/cargo/issues/10083 for more information about the `crate-type` flag." ,
147
- )
148
- . run ( ) ;
149
- }
150
-
151
137
#[ cargo_test]
152
138
fn fails_with_crate_type_to_multi_binaries ( ) {
153
139
let p = project ( )
@@ -157,8 +143,7 @@ fn fails_with_crate_type_to_multi_binaries() {
157
143
. file ( "src/lib.rs" , r#" "# )
158
144
. build ( ) ;
159
145
160
- p. cargo ( "rustc --crate-type lib -Zunstable-options" )
161
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
146
+ p. cargo ( "rustc --crate-type lib" )
162
147
. with_status ( 101 )
163
148
. with_stderr (
164
149
"[ERROR] crate types to rustc can only be passed to one target, consider filtering
@@ -191,8 +176,7 @@ fn fails_with_crate_type_to_multi_examples() {
191
176
. file ( "examples/ex2.rs" , "" )
192
177
. build ( ) ;
193
178
194
- p. cargo ( "rustc -v --example ex1 --example ex2 --crate-type lib,cdylib -Zunstable-options" )
195
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
179
+ p. cargo ( "rustc -v --example ex1 --example ex2 --crate-type lib,cdylib" )
196
180
. with_status ( 101 )
197
181
. with_stderr (
198
182
"[ERROR] crate types to rustc can only be passed to one target, consider filtering
@@ -205,8 +189,7 @@ the package by passing, e.g., `--lib` or `--example` to specify a single target"
205
189
fn fails_with_crate_type_to_binary ( ) {
206
190
let p = project ( ) . file ( "src/bin/foo.rs" , "fn main() {}" ) . build ( ) ;
207
191
208
- p. cargo ( "rustc --crate-type lib -Zunstable-options" )
209
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
192
+ p. cargo ( "rustc --crate-type lib" )
210
193
. with_status ( 101 )
211
194
. with_stderr (
212
195
"[ERROR] crate types can only be specified for libraries and example libraries.
@@ -219,8 +202,7 @@ Binaries, tests, and benchmarks are always the `bin` crate type",
219
202
fn build_with_crate_type_for_foo ( ) {
220
203
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
221
204
222
- p. cargo ( "rustc -v --crate-type cdylib -Zunstable-options" )
223
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
205
+ p. cargo ( "rustc -v --crate-type cdylib" )
224
206
. with_stderr (
225
207
"\
226
208
[COMPILING] foo v0.0.1 ([CWD])
@@ -257,8 +239,7 @@ fn build_with_crate_type_for_foo_with_deps() {
257
239
. file ( "a/src/lib.rs" , "pub fn hello() {}" )
258
240
. build ( ) ;
259
241
260
- p. cargo ( "rustc -v --crate-type cdylib -Zunstable-options" )
261
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
242
+ p. cargo ( "rustc -v --crate-type cdylib" )
262
243
. with_stderr (
263
244
"\
264
245
[COMPILING] a v0.1.0 ([CWD]/a)
@@ -275,8 +256,7 @@ fn build_with_crate_type_for_foo_with_deps() {
275
256
fn build_with_crate_types_for_foo ( ) {
276
257
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
277
258
278
- p. cargo ( "rustc -v --crate-type lib,cdylib -Zunstable-options" )
279
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
259
+ p. cargo ( "rustc -v --crate-type lib,cdylib" )
280
260
. with_stderr (
281
261
"\
282
262
[COMPILING] foo v0.0.1 ([CWD])
@@ -307,8 +287,7 @@ fn build_with_crate_type_to_example() {
307
287
. file ( "examples/ex.rs" , "" )
308
288
. build ( ) ;
309
289
310
- p. cargo ( "rustc -v --example ex --crate-type cdylib -Zunstable-options" )
311
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
290
+ p. cargo ( "rustc -v --example ex --crate-type cdylib" )
312
291
. with_stderr (
313
292
"\
314
293
[COMPILING] foo v0.0.1 ([CWD])
@@ -340,8 +319,7 @@ fn build_with_crate_types_to_example() {
340
319
. file ( "examples/ex.rs" , "" )
341
320
. build ( ) ;
342
321
343
- p. cargo ( "rustc -v --example ex --crate-type lib,cdylib -Zunstable-options" )
344
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
322
+ p. cargo ( "rustc -v --example ex --crate-type lib,cdylib" )
345
323
. with_stderr (
346
324
"\
347
325
[COMPILING] foo v0.0.1 ([CWD])
@@ -377,8 +355,7 @@ fn build_with_crate_types_to_one_of_multi_examples() {
377
355
. file ( "examples/ex2.rs" , "" )
378
356
. build ( ) ;
379
357
380
- p. cargo ( "rustc -v --example ex1 --crate-type lib,cdylib -Zunstable-options" )
381
- . masquerade_as_nightly_cargo ( & [ "crate-type" ] )
358
+ p. cargo ( "rustc -v --example ex1 --crate-type lib,cdylib" )
382
359
. with_stderr (
383
360
"\
384
361
[COMPILING] foo v0.0.1 ([CWD])
0 commit comments