Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/tools/clippy/tests/ui/missing_const_for_fn/auxiliary/helper.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// This file provides a const function that is unstably const forever. | ||
|
||
#![feature(staged_api)] | ||
#![stable(feature = "1", since = "1.0.0")] | ||
#![stable(feature = "clippytest", since = "1.0.0")] | ||
|
||
#[stable(feature = "1", since = "1.0.0")] | ||
#[stable(feature = "clippytest", since = "1.0.0")] | ||
#[rustc_const_unstable(feature = "foo", issue = "none")] | ||
pub const fn unstably_const_fn() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#![feature(staged_api)] | ||
#![stable(feature = "deprecated-future-staged-api", since = "1.0.0")] | ||
#![stable(feature = "deprecated_future_staged_api", since = "1.0.0")] | ||
|
||
// @has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \ | ||
// 'Deprecation planned' | ||
// @has deprecated_future_staged_api/struct.S1.html '//*[@class="stab deprecated"]' \ | ||
// 'Deprecating in 99.99.99: effectively never' | ||
#[deprecated(since = "99.99.99", note = "effectively never")] | ||
#[stable(feature = "deprecated-future-staged-api", since = "1.0.0")] | ||
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")] | ||
pub struct S1; | ||
|
||
// @has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \ | ||
// 'Deprecation planned' | ||
// @has deprecated_future_staged_api/struct.S2.html '//*[@class="stab deprecated"]' \ | ||
// 'Deprecating in a future Rust version: literally never' | ||
#[deprecated(since = "TBD", note = "literally never")] | ||
#[stable(feature = "deprecated-future-staged-api", since = "1.0.0")] | ||
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")] | ||
pub struct S2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters