@@ -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 ( )
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,7 +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 " )
146
+ p. cargo ( "rustc --crate-type lib" )
161
147
. masquerade_as_nightly_cargo ( )
162
148
. with_status ( 101 )
163
149
. with_stderr (
@@ -191,7 +177,7 @@ fn fails_with_crate_type_to_multi_examples() {
191
177
. file ( "examples/ex2.rs" , "" )
192
178
. build ( ) ;
193
179
194
- p. cargo ( "rustc -v --example ex1 --example ex2 --crate-type lib,cdylib -Zunstable-options " )
180
+ p. cargo ( "rustc -v --example ex1 --example ex2 --crate-type lib,cdylib" )
195
181
. masquerade_as_nightly_cargo ( )
196
182
. with_status ( 101 )
197
183
. with_stderr (
@@ -205,7 +191,7 @@ the package by passing, e.g., `--lib` or `--example` to specify a single target"
205
191
fn fails_with_crate_type_to_binary ( ) {
206
192
let p = project ( ) . file ( "src/bin/foo.rs" , "fn main() {}" ) . build ( ) ;
207
193
208
- p. cargo ( "rustc --crate-type lib -Zunstable-options " )
194
+ p. cargo ( "rustc --crate-type lib" )
209
195
. masquerade_as_nightly_cargo ( )
210
196
. with_status ( 101 )
211
197
. with_stderr (
@@ -219,7 +205,7 @@ Binaries, tests, and benchmarks are always the `bin` crate type",
219
205
fn build_with_crate_type_for_foo ( ) {
220
206
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
221
207
222
- p. cargo ( "rustc -v --crate-type cdylib -Zunstable-options " )
208
+ p. cargo ( "rustc -v --crate-type cdylib" )
223
209
. masquerade_as_nightly_cargo ( )
224
210
. with_stderr (
225
211
"\
@@ -257,7 +243,7 @@ fn build_with_crate_type_for_foo_with_deps() {
257
243
. file ( "a/src/lib.rs" , "pub fn hello() {}" )
258
244
. build ( ) ;
259
245
260
- p. cargo ( "rustc -v --crate-type cdylib -Zunstable-options " )
246
+ p. cargo ( "rustc -v --crate-type cdylib" )
261
247
. masquerade_as_nightly_cargo ( )
262
248
. with_stderr (
263
249
"\
@@ -275,7 +261,7 @@ fn build_with_crate_type_for_foo_with_deps() {
275
261
fn build_with_crate_types_for_foo ( ) {
276
262
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
277
263
278
- p. cargo ( "rustc -v --crate-type lib,cdylib -Zunstable-options " )
264
+ p. cargo ( "rustc -v --crate-type lib,cdylib" )
279
265
. masquerade_as_nightly_cargo ( )
280
266
. with_stderr (
281
267
"\
@@ -307,7 +293,7 @@ fn build_with_crate_type_to_example() {
307
293
. file ( "examples/ex.rs" , "" )
308
294
. build ( ) ;
309
295
310
- p. cargo ( "rustc -v --example ex --crate-type cdylib -Zunstable-options " )
296
+ p. cargo ( "rustc -v --example ex --crate-type cdylib" )
311
297
. masquerade_as_nightly_cargo ( )
312
298
. with_stderr (
313
299
"\
@@ -340,7 +326,7 @@ fn build_with_crate_types_to_example() {
340
326
. file ( "examples/ex.rs" , "" )
341
327
. build ( ) ;
342
328
343
- p. cargo ( "rustc -v --example ex --crate-type lib,cdylib -Zunstable-options " )
329
+ p. cargo ( "rustc -v --example ex --crate-type lib,cdylib" )
344
330
. masquerade_as_nightly_cargo ( )
345
331
. with_stderr (
346
332
"\
@@ -377,7 +363,7 @@ fn build_with_crate_types_to_one_of_multi_examples() {
377
363
. file ( "examples/ex2.rs" , "" )
378
364
. build ( ) ;
379
365
380
- p. cargo ( "rustc -v --example ex1 --crate-type lib,cdylib -Zunstable-options " )
366
+ p. cargo ( "rustc -v --example ex1 --crate-type lib,cdylib" )
381
367
. masquerade_as_nightly_cargo ( )
382
368
. with_stderr (
383
369
"\
0 commit comments