Skip to content

Commit 303475f

Browse files
committed
Fix stable feature names in tests
1 parent 73d645e commit 303475f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This file provides a const function that is unstably const forever.
22

33
#![feature(staged_api)]
4-
#![stable(feature = "1", since = "1.0.0")]
4+
#![stable(feature = "clippytest", since = "1.0.0")]
55

6-
#[stable(feature = "1", since = "1.0.0")]
6+
#[stable(feature = "clippytest", since = "1.0.0")]
77
#[rustc_const_unstable(feature = "foo", issue = "none")]
88
pub const fn unstably_const_fn() {}
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#![feature(staged_api)]
2-
#![stable(feature = "deprecated-future-staged-api", since = "1.0.0")]
2+
#![stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
33

44
// @has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \
55
// 'Deprecation planned'
66
// @has deprecated_future_staged_api/struct.S1.html '//*[@class="stab deprecated"]' \
77
// 'Deprecating in 99.99.99: effectively never'
88
#[deprecated(since = "99.99.99", note = "effectively never")]
9-
#[stable(feature = "deprecated-future-staged-api", since = "1.0.0")]
9+
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
1010
pub struct S1;
1111

1212
// @has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \
1313
// 'Deprecation planned'
1414
// @has deprecated_future_staged_api/struct.S2.html '//*[@class="stab deprecated"]' \
1515
// 'Deprecating in a future Rust version: literally never'
1616
#[deprecated(since = "TBD", note = "literally never")]
17-
#[stable(feature = "deprecated-future-staged-api", since = "1.0.0")]
17+
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
1818
pub struct S2;

tests/ui/deprecation/staged-deprecation-in-future.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
#![feature(staged_api)]
44

5-
#![stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
5+
#![stable(feature = "rustc_deprecation_in_future_test", since = "1.0.0")]
66

77
#[deprecated(since = "99.99.99", note = "effectively never")]
8-
#[stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
8+
#[stable(feature = "rustc_deprecation_in_future_test", since = "1.0.0")]
99
pub struct S1;
1010

1111
#[deprecated(since = "TBD", note = "literally never")]
12-
#[stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
12+
#[stable(feature = "rustc_deprecation_in_future_test", since = "1.0.0")]
1313
pub struct S2;
1414

1515
fn main() {

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

+3-3
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 = "", since = "")]
11+
#![stable(feature = "intrinsics_for_test", since = "")]
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 = "", since = "")]
26-
#[rustc_const_stable(feature = "", since = "")]
25+
#[stable(feature = "intrinsics_for_test", since = "")]
26+
#[rustc_const_stable(feature = "intrinsics_for_test", since = "")]
2727
#[rustc_safe_intrinsic]
2828
fn size_of<T>() -> usize;
2929
}

0 commit comments

Comments
 (0)