@@ -52,11 +52,12 @@ switch to nightly channel you can add
52
52
fn unknown_feature ( ) {
53
53
let p = project ( "foo" )
54
54
. file ( "Cargo.toml" , r#"
55
+ cargo-features = ["foo"]
56
+
55
57
[package]
56
58
name = "a"
57
59
version = "0.0.1"
58
60
authors = []
59
- cargo-features = ["foo"]
60
61
"# )
61
62
. file ( "src/lib.rs" , "" ) ;
62
63
assert_that ( p. cargo_process ( "build" ) ,
@@ -73,11 +74,12 @@ Caused by:
73
74
fn stable_feature_warns ( ) {
74
75
let p = project ( "foo" )
75
76
. file ( "Cargo.toml" , r#"
77
+ cargo-features = ["test-dummy-stable"]
78
+
76
79
[package]
77
80
name = "a"
78
81
version = "0.0.1"
79
82
authors = []
80
- cargo-features = ["test-dummy-stable"]
81
83
"# )
82
84
. file ( "src/lib.rs" , "" ) ;
83
85
assert_that ( p. cargo_process ( "build" ) ,
@@ -94,12 +96,13 @@ necessary to be listed in the manifest
94
96
fn nightly_feature_requires_nightly ( ) {
95
97
let p = project ( "foo" )
96
98
. file ( "Cargo.toml" , r#"
99
+ cargo-features = ["test-dummy-unstable"]
100
+
97
101
[package]
98
102
name = "a"
99
103
version = "0.0.1"
100
104
authors = []
101
105
im-a-teapot = true
102
- cargo-features = ["test-dummy-unstable"]
103
106
"# )
104
107
. file ( "src/lib.rs" , "" ) ;
105
108
assert_that ( p. cargo_process ( "build" )
@@ -135,12 +138,13 @@ fn nightly_feature_requires_nightly_in_dep() {
135
138
"# )
136
139
. file ( "src/lib.rs" , "" )
137
140
. file ( "a/Cargo.toml" , r#"
141
+ cargo-features = ["test-dummy-unstable"]
142
+
138
143
[package]
139
144
name = "a"
140
145
version = "0.0.1"
141
146
authors = []
142
147
im-a-teapot = true
143
- cargo-features = ["test-dummy-unstable"]
144
148
"# )
145
149
. file ( "a/src/lib.rs" , "" ) ;
146
150
assert_that ( p. cargo_process ( "build" )
@@ -173,12 +177,13 @@ Caused by:
173
177
fn cant_publish ( ) {
174
178
let p = project ( "foo" )
175
179
. file ( "Cargo.toml" , r#"
180
+ cargo-features = ["test-dummy-unstable"]
181
+
176
182
[package]
177
183
name = "a"
178
184
version = "0.0.1"
179
185
authors = []
180
186
im-a-teapot = true
181
- cargo-features = ["test-dummy-unstable"]
182
187
"# )
183
188
. file ( "src/lib.rs" , "" ) ;
184
189
assert_that ( p. cargo_process ( "build" )
@@ -204,12 +209,13 @@ Caused by:
204
209
fn z_flags_rejected ( ) {
205
210
let p = project ( "foo" )
206
211
. file ( "Cargo.toml" , r#"
212
+ cargo-features = ["test-dummy-unstable"]
213
+
207
214
[package]
208
215
name = "a"
209
216
version = "0.0.1"
210
217
authors = []
211
218
im-a-teapot = true
212
- cargo-features = ["test-dummy-unstable"]
213
219
"# )
214
220
. file ( "src/lib.rs" , "" ) ;
215
221
assert_that ( p. cargo_process ( "build" )
@@ -242,11 +248,12 @@ error: unknown `-Z` flag specified: arg
242
248
fn publish_rejected ( ) {
243
249
let p = project ( "foo" )
244
250
. file ( "Cargo.toml" , r#"
251
+ cargo-features = ["test-dummy-unstable"]
252
+
245
253
[package]
246
254
name = "a"
247
255
version = "0.0.1"
248
256
authors = []
249
- cargo-features = ["test-dummy-unstable"]
250
257
"# )
251
258
. file ( "src/lib.rs" , "" ) ;
252
259
assert_that ( p. cargo_process ( "package" )
0 commit comments