912783402f
Extend support for `implies_by` (from `#[stable]` and `#[unstable]`) to `#[rustc_const_stable]` and `#[rustc_const_unstable]`. Signed-off-by: David Wood <david.wood@huawei.com>
13 lines
534 B
Rust
13 lines
534 B
Rust
#![crate_type = "lib"]
|
|
#![feature(staged_api)]
|
|
#![stable(feature = "stability_attribute_implies", since = "1.0.0")]
|
|
#![rustc_const_stable(feature = "stability_attribute_implies", since = "1.0.0")]
|
|
|
|
#[stable(feature = "stability_attribute_implies", since = "1.0.0")]
|
|
#[rustc_const_stable(feature = "const_foo", since = "1.62.0")]
|
|
pub const fn foo() {}
|
|
|
|
#[stable(feature = "stability_attribute_implies", since = "1.0.0")]
|
|
#[rustc_const_unstable(feature = "const_foobar", issue = "1", implied_by = "const_foo")]
|
|
pub const fn foobar() {}
|