Skip to content

Commit 8ef1e3b

Browse files
committed
test: Fix tests for requiring issues
1 parent 2972b77 commit 8ef1e3b

File tree

14 files changed

+97
-87
lines changed

14 files changed

+97
-87
lines changed

src/liballoc_jemalloc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#![cfg_attr(not(stage0), allocator)]
1717
#![unstable(feature = "alloc_jemalloc",
1818
reason = "this library is unlikely to be stabilized in its current \
19-
form or name")]
19+
form or name",
20+
issue = "27783")]
2021
#![feature(allocator)]
2122
#![feature(libc)]
2223
#![feature(no_std)]

src/liballoc_system/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#![cfg_attr(not(stage0), allocator)]
1717
#![unstable(feature = "alloc_system",
1818
reason = "this library is unlikely to be stabilized in its current \
19-
form or name")]
19+
form or name",
20+
issue = "27783")]
2021
#![feature(allocator)]
2122
#![feature(libc)]
2223
#![feature(no_std)]

src/libstd/sys/windows/ext/fs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ use sys_common::{AsInnerMut, AsInner};
2020

2121
/// Windows-specific extensions to `OpenOptions`
2222
#[unstable(feature = "open_options_ext",
23-
reason = "may require more thought/methods")]
23+
reason = "may require more thought/methods",
24+
issue = "27720")]
2425
pub trait OpenOptionsExt {
2526
/// Overrides the `dwDesiredAccess` argument to the call to `CreateFile`
2627
/// with the specified value.

src/test/auxiliary/inherited_stability.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010
#![crate_name="inherited_stability"]
1111
#![crate_type = "lib"]
12-
#![unstable(feature = "test_feature")]
12+
#![unstable(feature = "test_feature", issue = "0")]
1313
#![feature(staged_api)]
1414
#![staged_api]
1515

@@ -26,7 +26,7 @@ pub mod stable_mod {
2626
pub fn stable() {}
2727
}
2828

29-
#[unstable(feature = "test_feature")]
29+
#[unstable(feature = "test_feature", issue = "0")]
3030
pub mod unstable_mod {
3131
#[stable(feature = "test_feature", since = "1.0.0")]
3232
#[deprecated(since = "1.0.0")]

src/test/auxiliary/internal_unstable.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
#![staged_api]
1313
#![stable(feature = "stable", since = "1.0.0")]
1414

15-
#[unstable(feature = "function")]
15+
#[unstable(feature = "function", issue = "0")]
1616
pub fn unstable() {}
1717

1818

1919
#[stable(feature = "stable", since = "1.0.0")]
2020
pub struct Foo {
21-
#[unstable(feature = "struct_field")]
21+
#[unstable(feature = "struct_field", issue = "0")]
2222
pub x: u8
2323
}
2424

2525
impl Foo {
26-
#[unstable(feature = "method")]
26+
#[unstable(feature = "method", issue = "0")]
2727
pub fn method(&self) {}
2828
}
2929

3030
#[stable(feature = "stable", since = "1.0.0")]
3131
pub struct Bar {
32-
#[unstable(feature = "struct2_field")]
32+
#[unstable(feature = "struct2_field", issue = "0")]
3333
pub x: u8
3434
}
3535

src/test/auxiliary/lint_output_format.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
#![crate_type = "lib"]
1313
#![feature(staged_api)]
1414
#![staged_api]
15-
#![unstable(feature = "test_feature")]
15+
#![unstable(feature = "test_feature", issue = "0")]
1616

1717
#[stable(feature = "test_feature", since = "1.0.0")]
1818
#[deprecated(since = "1.0.0")]
1919
pub fn foo() -> usize {
2020
20
2121
}
2222

23-
#[unstable(feature = "test_feature")]
23+
#[unstable(feature = "test_feature", issue = "0")]
2424
pub fn bar() -> usize {
2525
40
2626
}
2727

28-
#[unstable(feature = "test_feature")]
28+
#[unstable(feature = "test_feature", issue = "0")]
2929
pub fn baz() -> usize {
3030
30
3131
}

src/test/auxiliary/lint_stability.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ pub fn deprecated() {}
2020
#[deprecated(since = "1.0.0", reason = "text")]
2121
pub fn deprecated_text() {}
2222

23-
#[unstable(feature = "test_feature")]
23+
#[unstable(feature = "test_feature", issue = "0")]
2424
#[deprecated(since = "1.0.0")]
2525
pub fn deprecated_unstable() {}
26-
#[unstable(feature = "test_feature")]
26+
#[unstable(feature = "test_feature", issue = "0")]
2727
#[deprecated(since = "1.0.0", reason = "text")]
2828
pub fn deprecated_unstable_text() {}
2929

30-
#[unstable(feature = "test_feature")]
30+
#[unstable(feature = "test_feature", issue = "0")]
3131
pub fn unstable() {}
32-
#[unstable(feature = "test_feature", reason = "text")]
32+
#[unstable(feature = "test_feature", reason = "text", issue = "0")]
3333
pub fn unstable_text() {}
3434

3535
#[stable(feature = "rust1", since = "1.0.0")]
@@ -48,16 +48,16 @@ impl MethodTester {
4848
#[deprecated(since = "1.0.0", reason = "text")]
4949
pub fn method_deprecated_text(&self) {}
5050

51-
#[unstable(feature = "test_feature")]
51+
#[unstable(feature = "test_feature", issue = "0")]
5252
#[deprecated(since = "1.0.0")]
5353
pub fn method_deprecated_unstable(&self) {}
54-
#[unstable(feature = "test_feature")]
54+
#[unstable(feature = "test_feature", issue = "0")]
5555
#[deprecated(since = "1.0.0", reason = "text")]
5656
pub fn method_deprecated_unstable_text(&self) {}
5757

58-
#[unstable(feature = "test_feature")]
58+
#[unstable(feature = "test_feature", issue = "0")]
5959
pub fn method_unstable(&self) {}
60-
#[unstable(feature = "test_feature", reason = "text")]
60+
#[unstable(feature = "test_feature", reason = "text", issue = "0")]
6161
pub fn method_unstable_text(&self) {}
6262

6363
#[stable(feature = "rust1", since = "1.0.0")]
@@ -75,16 +75,16 @@ pub trait Trait {
7575
#[deprecated(since = "1.0.0", reason = "text")]
7676
fn trait_deprecated_text(&self) {}
7777

78-
#[unstable(feature = "test_feature")]
78+
#[unstable(feature = "test_feature", issue = "0")]
7979
#[deprecated(since = "1.0.0")]
8080
fn trait_deprecated_unstable(&self) {}
81-
#[unstable(feature = "test_feature")]
81+
#[unstable(feature = "test_feature", issue = "0")]
8282
#[deprecated(since = "1.0.0", reason = "text")]
8383
fn trait_deprecated_unstable_text(&self) {}
8484

85-
#[unstable(feature = "test_feature")]
85+
#[unstable(feature = "test_feature", issue = "0")]
8686
fn trait_unstable(&self) {}
87-
#[unstable(feature = "test_feature", reason = "text")]
87+
#[unstable(feature = "test_feature", reason = "text", issue = "0")]
8888
fn trait_unstable_text(&self) {}
8989

9090
#[stable(feature = "rust1", since = "1.0.0")]
@@ -95,20 +95,20 @@ pub trait Trait {
9595

9696
impl Trait for MethodTester {}
9797

98-
#[unstable(feature = "test_feature")]
98+
#[unstable(feature = "test_feature", issue = "0")]
9999
pub trait UnstableTrait { fn dummy(&self) { } }
100100

101101
#[stable(feature = "test_feature", since = "1.0.0")]
102102
#[deprecated(since = "1.0.0")]
103103
pub struct DeprecatedStruct {
104104
#[stable(feature = "test_feature", since = "1.0.0")] pub i: isize
105105
}
106-
#[unstable(feature = "test_feature")]
106+
#[unstable(feature = "test_feature", issue = "0")]
107107
#[deprecated(since = "1.0.0")]
108108
pub struct DeprecatedUnstableStruct {
109109
#[stable(feature = "test_feature", since = "1.0.0")] pub i: isize
110110
}
111-
#[unstable(feature = "test_feature")]
111+
#[unstable(feature = "test_feature", issue = "0")]
112112
pub struct UnstableStruct {
113113
#[stable(feature = "test_feature", since = "1.0.0")] pub i: isize
114114
}
@@ -120,10 +120,10 @@ pub struct StableStruct {
120120
#[stable(feature = "test_feature", since = "1.0.0")]
121121
#[deprecated(since = "1.0.0")]
122122
pub struct DeprecatedUnitStruct;
123-
#[unstable(feature = "test_feature")]
123+
#[unstable(feature = "test_feature", issue = "0")]
124124
#[deprecated(since = "1.0.0")]
125125
pub struct DeprecatedUnstableUnitStruct;
126-
#[unstable(feature = "test_feature")]
126+
#[unstable(feature = "test_feature", issue = "0")]
127127
pub struct UnstableUnitStruct;
128128
#[stable(feature = "rust1", since = "1.0.0")]
129129
pub struct StableUnitStruct;
@@ -133,10 +133,10 @@ pub enum Enum {
133133
#[stable(feature = "test_feature", since = "1.0.0")]
134134
#[deprecated(since = "1.0.0")]
135135
DeprecatedVariant,
136-
#[unstable(feature = "test_feature")]
136+
#[unstable(feature = "test_feature", issue = "0")]
137137
#[deprecated(since = "1.0.0")]
138138
DeprecatedUnstableVariant,
139-
#[unstable(feature = "test_feature")]
139+
#[unstable(feature = "test_feature", issue = "0")]
140140
UnstableVariant,
141141

142142
#[stable(feature = "rust1", since = "1.0.0")]
@@ -146,10 +146,10 @@ pub enum Enum {
146146
#[stable(feature = "test_feature", since = "1.0.0")]
147147
#[deprecated(since = "1.0.0")]
148148
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
149-
#[unstable(feature = "test_feature")]
149+
#[unstable(feature = "test_feature", issue = "0")]
150150
#[deprecated(since = "1.0.0")]
151151
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
152-
#[unstable(feature = "test_feature")]
152+
#[unstable(feature = "test_feature", issue = "0")]
153153
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
154154
#[stable(feature = "rust1", since = "1.0.0")]
155155
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);

src/test/auxiliary/lint_stability_fields.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,47 @@
1616
pub struct Stable {
1717
#[stable(feature = "rust1", since = "1.0.0")]
1818
pub inherit: u8, // it's a lie (stable doesn't inherit)
19-
#[unstable(feature = "test_feature")]
19+
#[unstable(feature = "test_feature", issue = "0")]
2020
pub override1: u8,
2121
#[deprecated(since = "1.0.0")]
22-
#[unstable(feature = "test_feature")]
22+
#[unstable(feature = "test_feature", issue = "0")]
2323
pub override2: u8,
2424
}
2525

2626
#[stable(feature = "rust1", since = "1.0.0")]
2727
pub struct Stable2(#[stable(feature = "rust1", since = "1.0.0")] pub u8,
28-
#[unstable(feature = "test_feature")] pub u8,
29-
#[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] pub u8);
28+
#[unstable(feature = "test_feature", issue = "0")] pub u8,
29+
#[unstable(feature = "test_feature", issue = "0")]
30+
#[deprecated(since = "1.0.0")] pub u8);
3031

31-
#[unstable(feature = "test_feature")]
32+
#[unstable(feature = "test_feature", issue = "0")]
3233
pub struct Unstable {
3334
pub inherit: u8,
3435
#[stable(feature = "rust1", since = "1.0.0")]
3536
pub override1: u8,
3637
#[deprecated(since = "1.0.0")]
37-
#[unstable(feature = "test_feature")]
38+
#[unstable(feature = "test_feature", issue = "0")]
3839
pub override2: u8,
3940
}
4041

41-
#[unstable(feature = "test_feature")]
42+
#[unstable(feature = "test_feature", issue = "0")]
4243
pub struct Unstable2(pub u8,
4344
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
44-
#[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] pub u8);
45+
#[unstable(feature = "test_feature", issue = "0")]
46+
#[deprecated(since = "1.0.0")] pub u8);
4547

46-
#[unstable(feature = "test_feature")]
48+
#[unstable(feature = "test_feature", issue = "0")]
4749
#[deprecated(feature = "rust1", since = "1.0.0")]
4850
pub struct Deprecated {
4951
pub inherit: u8,
5052
#[stable(feature = "rust1", since = "1.0.0")]
5153
pub override1: u8,
52-
#[unstable(feature = "test_feature")]
54+
#[unstable(feature = "test_feature", issue = "0")]
5355
pub override2: u8,
5456
}
5557

56-
#[unstable(feature = "test_feature")]
58+
#[unstable(feature = "test_feature", issue = "0")]
5759
#[deprecated(feature = "rust1", since = "1.0.0")]
5860
pub struct Deprecated2(pub u8,
5961
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
60-
#[unstable(feature = "test_feature")] pub u8);
62+
#[unstable(feature = "test_feature", issue = "0")] pub u8);

src/test/auxiliary/stability_cfg2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// compile-flags:--cfg foo
1212

13-
#![cfg_attr(foo, unstable(feature = "test_feature"))]
13+
#![cfg_attr(foo, unstable(feature = "test_feature", issue = "0"))]
1414
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
1515
#![feature(staged_api)]
1616
#![staged_api]

src/test/compile-fail/lint-stability-fields.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,48 +187,50 @@ mod this_crate {
187187
#[stable(feature = "rust1", since = "1.0.0")]
188188
struct Stable {
189189
inherit: u8,
190-
#[unstable(feature = "test_feature")]
190+
#[unstable(feature = "test_feature", issue = "0")]
191191
override1: u8,
192192
#[deprecated(since = "1.0.0")]
193-
#[unstable(feature = "test_feature")]
193+
#[unstable(feature = "test_feature", issue = "0")]
194194
override2: u8,
195195
}
196196

197197
#[stable(feature = "rust1", since = "1.0.0")]
198198
struct Stable2(u8,
199199
#[stable(feature = "rust1", since = "1.0.0")] u8,
200-
#[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] u8);
200+
#[unstable(feature = "test_feature", issue = "0")]
201+
#[deprecated(since = "1.0.0")] u8);
201202

202-
#[unstable(feature = "test_feature")]
203+
#[unstable(feature = "test_feature", issue = "0")]
203204
struct Unstable {
204205
inherit: u8,
205206
#[stable(feature = "rust1", since = "1.0.0")]
206207
override1: u8,
207208
#[deprecated(since = "1.0.0")]
208-
#[unstable(feature = "test_feature")]
209+
#[unstable(feature = "test_feature", issue = "0")]
209210
override2: u8,
210211
}
211212

212-
#[unstable(feature = "test_feature")]
213+
#[unstable(feature = "test_feature", issue = "0")]
213214
struct Unstable2(u8,
214215
#[stable(feature = "rust1", since = "1.0.0")] u8,
215-
#[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] u8);
216+
#[unstable(feature = "test_feature", issue = "0")]
217+
#[deprecated(since = "1.0.0")] u8);
216218

217-
#[unstable(feature = "test_feature")]
219+
#[unstable(feature = "test_feature", issue = "0")]
218220
#[deprecated(feature = "rust1", since = "1.0.0")]
219221
struct Deprecated {
220222
inherit: u8,
221223
#[stable(feature = "rust1", since = "1.0.0")]
222224
override1: u8,
223-
#[unstable(feature = "test_feature")]
225+
#[unstable(feature = "test_feature", issue = "0")]
224226
override2: u8,
225227
}
226228

227-
#[unstable(feature = "test_feature")]
229+
#[unstable(feature = "test_feature", issue = "0")]
228230
#[deprecated(feature = "rust1", since = "1.0.0")]
229231
struct Deprecated2(u8,
230232
#[stable(feature = "rust1", since = "1.0.0")] u8,
231-
#[unstable(feature = "test_feature")] u8);
233+
#[unstable(feature = "test_feature", issue = "0")] u8);
232234

233235
pub fn foo() {
234236
let x = Stable {

0 commit comments

Comments
 (0)