20
20
#![ staged_api]
21
21
22
22
#[ macro_use]
23
- extern crate lint_stability; //~ ERROR: use of unmarked library feature
23
+ extern crate lint_stability;
24
24
25
25
mod cross_crate {
26
26
extern crate stability_cfg1;
@@ -61,10 +61,6 @@ mod cross_crate {
61
61
foo. method_unstable_text ( ) ; //~ WARNING use of unstable library feature 'test_feature': text
62
62
foo. trait_unstable_text ( ) ; //~ WARNING use of unstable library feature 'test_feature': text
63
63
64
- unmarked ( ) ; //~ ERROR use of unmarked library feature
65
- foo. method_unmarked ( ) ; //~ ERROR use of unmarked library feature
66
- foo. trait_unmarked ( ) ; //~ ERROR use of unmarked library feature
67
-
68
64
stable ( ) ;
69
65
foo. method_stable ( ) ;
70
66
foo. trait_stable ( ) ;
@@ -77,28 +73,24 @@ mod cross_crate {
77
73
let _ = DeprecatedUnstableStruct { i : 0 } ; //~ ERROR use of deprecated item
78
74
//~^ WARNING use of unstable library feature
79
75
let _ = UnstableStruct { i : 0 } ; //~ WARNING use of unstable library feature
80
- let _ = UnmarkedStruct { i : 0 } ; //~ ERROR use of unmarked library feature
81
76
let _ = StableStruct { i : 0 } ;
82
77
83
78
let _ = DeprecatedUnitStruct ; //~ ERROR use of deprecated item
84
79
let _ = DeprecatedUnstableUnitStruct ; //~ ERROR use of deprecated item
85
80
//~^ WARNING use of unstable library feature
86
81
let _ = UnstableUnitStruct ; //~ WARNING use of unstable library feature
87
- let _ = UnmarkedUnitStruct ; //~ ERROR use of unmarked library feature
88
82
let _ = StableUnitStruct ;
89
83
90
84
let _ = Enum :: DeprecatedVariant ; //~ ERROR use of deprecated item
91
85
let _ = Enum :: DeprecatedUnstableVariant ; //~ ERROR use of deprecated item
92
86
//~^ WARNING use of unstable library feature
93
87
let _ = Enum :: UnstableVariant ; //~ WARNING use of unstable library feature
94
- let _ = Enum :: UnmarkedVariant ; //~ ERROR use of unmarked library feature
95
88
let _ = Enum :: StableVariant ;
96
89
97
90
let _ = DeprecatedTupleStruct ( 1 ) ; //~ ERROR use of deprecated item
98
91
let _ = DeprecatedUnstableTupleStruct ( 1 ) ; //~ ERROR use of deprecated item
99
92
//~^ WARNING use of unstable library feature
100
93
let _ = UnstableTupleStruct ( 1 ) ; //~ WARNING use of unstable library feature
101
- let _ = UnmarkedTupleStruct ( 1 ) ; //~ ERROR use of unmarked library feature
102
94
let _ = StableTupleStruct ( 1 ) ;
103
95
104
96
// At the moment, the lint checker only checks stability in
@@ -123,7 +115,6 @@ mod cross_crate {
123
115
//~^ WARNING use of unstable library feature
124
116
foo. trait_unstable ( ) ; //~ WARNING use of unstable library feature
125
117
foo. trait_unstable_text ( ) ; //~ WARNING use of unstable library feature 'test_feature': text
126
- foo. trait_unmarked ( ) ; //~ ERROR use of unmarked library feature
127
118
foo. trait_stable ( ) ;
128
119
}
129
120
@@ -136,7 +127,6 @@ mod cross_crate {
136
127
//~^ WARNING use of unstable library feature
137
128
foo. trait_unstable ( ) ; //~ WARNING use of unstable library feature
138
129
foo. trait_unstable_text ( ) ; //~ WARNING use of unstable library feature 'test_feature': text
139
- foo. trait_unmarked ( ) ; //~ ERROR use of unmarked library feature
140
130
foo. trait_stable ( ) ;
141
131
}
142
132
@@ -183,8 +173,6 @@ mod this_crate {
183
173
#[ unstable( feature = "test_feature" , reason = "text" ) ]
184
174
pub fn unstable_text ( ) { }
185
175
186
- pub fn unmarked ( ) { }
187
-
188
176
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
189
177
pub fn stable ( ) { }
190
178
#[ stable( feature = "rust1" , since = "1.0.0" , reason = "text" ) ]
@@ -206,8 +194,6 @@ mod this_crate {
206
194
#[ unstable( feature = "test_feature" , reason = "text" ) ]
207
195
pub fn method_unstable_text ( & self ) { }
208
196
209
- pub fn method_unmarked ( & self ) { }
210
-
211
197
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
212
198
pub fn method_stable ( & self ) { }
213
199
#[ stable( feature = "rust1" , since = "1.0.0" , reason = "text" ) ]
@@ -227,8 +213,6 @@ mod this_crate {
227
213
#[ unstable( feature = "test_feature" , reason = "text" ) ]
228
214
fn trait_unstable_text ( & self ) { }
229
215
230
- fn trait_unmarked ( & self ) { }
231
-
232
216
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
233
217
fn trait_stable ( & self ) { }
234
218
#[ stable( feature = "rust1" , since = "1.0.0" , reason = "text" ) ]
@@ -242,7 +226,6 @@ mod this_crate {
242
226
pub struct DeprecatedStruct { i : isize }
243
227
#[ unstable( feature = "test_feature" ) ]
244
228
pub struct UnstableStruct { i : isize }
245
- pub struct UnmarkedStruct { i : isize }
246
229
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
247
230
pub struct StableStruct { i : isize }
248
231
@@ -251,7 +234,6 @@ mod this_crate {
251
234
pub struct DeprecatedUnitStruct ;
252
235
#[ unstable( feature = "test_feature" ) ]
253
236
pub struct UnstableUnitStruct ;
254
- pub struct UnmarkedUnitStruct ;
255
237
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
256
238
pub struct StableUnitStruct ;
257
239
@@ -262,7 +244,6 @@ mod this_crate {
262
244
#[ unstable( feature = "test_feature" ) ]
263
245
UnstableVariant ,
264
246
265
- UnmarkedVariant ,
266
247
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
267
248
StableVariant ,
268
249
}
@@ -272,7 +253,6 @@ mod this_crate {
272
253
pub struct DeprecatedTupleStruct ( isize ) ;
273
254
#[ unstable( feature = "test_feature" ) ]
274
255
pub struct UnstableTupleStruct ( isize ) ;
275
- pub struct UnmarkedTupleStruct ( isize ) ;
276
256
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
277
257
pub struct StableTupleStruct ( isize ) ;
278
258
@@ -299,10 +279,6 @@ mod this_crate {
299
279
foo. method_unstable_text ( ) ;
300
280
foo. trait_unstable_text ( ) ;
301
281
302
- unmarked ( ) ;
303
- foo. method_unmarked ( ) ;
304
- foo. trait_unmarked ( ) ;
305
-
306
282
stable ( ) ;
307
283
foo. method_stable ( ) ;
308
284
foo. trait_stable ( ) ;
@@ -313,22 +289,18 @@ mod this_crate {
313
289
314
290
let _ = DeprecatedStruct { i : 0 } ; //~ ERROR use of deprecated item
315
291
let _ = UnstableStruct { i : 0 } ;
316
- let _ = UnmarkedStruct { i : 0 } ;
317
292
let _ = StableStruct { i : 0 } ;
318
293
319
294
let _ = DeprecatedUnitStruct ; //~ ERROR use of deprecated item
320
295
let _ = UnstableUnitStruct ;
321
- let _ = UnmarkedUnitStruct ;
322
296
let _ = StableUnitStruct ;
323
297
324
298
let _ = Enum :: DeprecatedVariant ; //~ ERROR use of deprecated item
325
299
let _ = Enum :: UnstableVariant ;
326
- let _ = Enum :: UnmarkedVariant ;
327
300
let _ = Enum :: StableVariant ;
328
301
329
302
let _ = DeprecatedTupleStruct ( 1 ) ; //~ ERROR use of deprecated item
330
303
let _ = UnstableTupleStruct ( 1 ) ;
331
- let _ = UnmarkedTupleStruct ( 1 ) ;
332
304
let _ = StableTupleStruct ( 1 ) ;
333
305
}
334
306
@@ -337,7 +309,6 @@ mod this_crate {
337
309
foo. trait_deprecated_text ( ) ; //~ ERROR use of deprecated item: text
338
310
foo. trait_unstable ( ) ;
339
311
foo. trait_unstable_text ( ) ;
340
- foo. trait_unmarked ( ) ;
341
312
foo. trait_stable ( ) ;
342
313
}
343
314
@@ -346,7 +317,6 @@ mod this_crate {
346
317
foo. trait_deprecated_text ( ) ; //~ ERROR use of deprecated item: text
347
318
foo. trait_unstable ( ) ;
348
319
foo. trait_unstable_text ( ) ;
349
- foo. trait_unmarked ( ) ;
350
320
foo. trait_stable ( ) ;
351
321
}
352
322
0 commit comments