Skip to content

Commit 6a02e20

Browse files
committed
Update since stability attributes in tests
1 parent 82ed3f5 commit 6a02e20

15 files changed

+79
-69
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
#![stable(feature = "bar", since = "OLD 1.0")]
1+
#![stable(feature = "bar", since = "3.3.3")]
22
#![crate_name = "foo"]
33

44
#![feature(staged_api)]
55

6-
#[stable(feature = "bar", since = "OLD 1.0")]
6+
#[stable(feature = "bar", since = "3.3.3")]
77
pub trait Bar {}
88

9-
#[stable(feature = "baz", since = "OLD 1.0")]
9+
#[stable(feature = "baz", since = "3.3.3")]
1010
pub trait Baz {}
1111

12-
#[stable(feature = "baz", since = "OLD 1.0")]
12+
#[stable(feature = "baz", since = "3.3.3")]
1313
pub struct Foo;
1414

15-
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'
16-
#[stable(feature = "foobar", since = "NEW 2.0")]
15+
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' '4.4.4'
16+
#[stable(feature = "foobar", since = "4.4.4")]
1717
impl Bar for Foo {}
1818

19-
// @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' 'OLD 1.0'
20-
#[stable(feature = "foobaz", since = "OLD 1.0")]
19+
// @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' '3.3.3'
20+
#[stable(feature = "foobaz", since = "3.3.3")]
2121
impl Baz for Foo {}

tests/ui/attributes/const-stability-on-macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(staged_api)]
22
#![stable(feature = "rust1", since = "1.0.0")]
33

4-
#[rustc_const_stable(feature = "foo", since = "0")]
4+
#[rustc_const_stable(feature = "foo", since = "3.3.3")]
55
//~^ ERROR macros cannot have const stability attributes
66
macro_rules! foo {
77
() => {};

tests/ui/attributes/const-stability-on-macro.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: macros cannot have const stability attributes
22
--> $DIR/const-stability-on-macro.rs:4:1
33
|
4-
LL | #[rustc_const_stable(feature = "foo", since = "0")]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
4+
LL | #[rustc_const_stable(feature = "foo", since = "3.3.3")]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid const stability attribute
66
LL |
77
LL | macro_rules! foo {
88
| ---------------- const stability attribute affects this macro

tests/ui/const-generics/defaults/default-annotation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
// FIXME(const_generics_defaults): It seems like we aren't testing the right thing here,
55
// I would assume that we want the attributes to apply to the const parameter defaults
66
// themselves.
7-
#![stable(feature = "const_default_test", since="none")]
7+
#![stable(feature = "const_default_test", since = "3.3.3")]
88

9-
#[unstable(feature = "const_default_stable", issue="none")]
9+
#[unstable(feature = "const_default_stable", issue = "none")]
1010
pub struct ConstDefaultUnstable<const N: usize = 3>;
1111

12-
#[stable(feature = "const_default_unstable", since="none")]
12+
#[stable(feature = "const_default_unstable", since = "3.3.3")]
1313
pub struct ConstDefaultStable<const N: usize = {
1414
3
1515
}>;

tests/ui/feature-gates/feature-gate-staged_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#![stable(feature = "a", since = "b")]
1+
#![stable(feature = "a", since = "3.3.3")]
22
//~^ ERROR stability attributes may not be used outside of the standard library
33
mod inner_private_module {
44
// UnnameableTypeAlias isn't marked as reachable, so no stability annotation is required here
55
pub type UnnameableTypeAlias = u8;
66
}
77

8-
#[stable(feature = "a", since = "b")]
8+
#[stable(feature = "a", since = "3.3.3")]
99
//~^ ERROR stability attributes may not be used outside of the standard library
1010
pub fn f() -> inner_private_module::UnnameableTypeAlias {
1111
0

tests/ui/feature-gates/feature-gate-staged_api.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error[E0734]: stability attributes may not be used outside of the standard library
22
--> $DIR/feature-gate-staged_api.rs:8:1
33
|
4-
LL | #[stable(feature = "a", since = "b")]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | #[stable(feature = "a", since = "3.3.3")]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error[E0734]: stability attributes may not be used outside of the standard library
88
--> $DIR/feature-gate-staged_api.rs:1:1
99
|
10-
LL | #![stable(feature = "a", since = "b")]
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10+
LL | #![stable(feature = "a", since = "3.3.3")]
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: aborting due to 2 previous errors
1414

tests/ui/reachable/reachable-unnameable-type-alias.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// run-pass
22

33
#![feature(staged_api)]
4-
#![stable(feature = "a", since = "b")]
4+
#![stable(feature = "a", since = "3.3.3")]
55

66
mod inner_private_module {
77
// UnnameableTypeAlias isn't marked as reachable, so no stability annotation is required here
88
pub type UnnameableTypeAlias = u8;
99
}
1010

11-
#[stable(feature = "a", since = "b")]
11+
#[stable(feature = "a", since = "3.3.3")]
1212
pub fn f() -> inner_private_module::UnnameableTypeAlias {
1313
0
1414
}

tests/ui/repr/16-bit-repr-c-enum.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#![feature(no_core, lang_items, intrinsics, staged_api, rustc_attrs)]
99
#![no_core]
1010
#![crate_type = "lib"]
11-
#![stable(feature = "intrinsics_for_test", since = "")]
11+
#![stable(feature = "intrinsics_for_test", since = "3.3.3")]
1212
#![allow(dead_code)]
1313

1414
// Test that the repr(C) attribute doesn't break compilation
@@ -22,8 +22,8 @@ enum Foo {
2222
}
2323

2424
extern "rust-intrinsic" {
25-
#[stable(feature = "intrinsics_for_test", since = "")]
26-
#[rustc_const_stable(feature = "intrinsics_for_test", since = "")]
25+
#[stable(feature = "intrinsics_for_test", since = "3.3.3")]
26+
#[rustc_const_stable(feature = "intrinsics_for_test", since = "3.3.3")]
2727
#[rustc_safe_intrinsic]
2828
fn size_of<T>() -> usize;
2929
}

tests/ui/rfcs/rfc-2632-const-trait-impl/default-method-body-is-const-with-staged-api.rs

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

88
#![feature(staged_api)]
99
#![feature(const_trait_impl)]
10-
#![stable(since = "1", feature = "foo")]
10+
#![stable(feature = "foo", since = "3.3.3")]
1111

1212
#[const_trait]
1313
trait Tr {

tests/ui/stability-attribute/stability-attribute-issue-43027.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// check-pass
22
#![feature(staged_api)]
3-
#![stable(feature = "test", since = "0")]
3+
#![stable(feature = "test", since = "3.3.3")]
44

5-
#[stable(feature = "test", since = "0")]
5+
#[stable(feature = "test", since = "3.3.3")]
66
pub struct A<T>(pub T);
77

8-
#[stable(feature = "test", since = "0")]
9-
pub struct B<T>(#[stable(feature = "test", since = "0")] pub T);
8+
#[stable(feature = "test", since = "3.3.3")]
9+
pub struct B<T>(#[stable(feature = "test", since = "3.3.3")] pub T);
1010

1111
fn main() {
1212
// Make sure the field is used to fill the stability cache

0 commit comments

Comments
 (0)