@@ -70,33 +70,17 @@ help: make the function or method const
7070LL | pub extern "C" fn foo_c() {}
7171 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7272
73- error: attribute `#[rustc_const_stable]` can only be applied to functions that are declared `#[stable]`
74- --> $DIR/rustc-const-stability-require-const.rs:52:1
75- |
76- LL | #[rustc_const_stable(feature = "barfoo_const", since = "1.0.0")]
77- | ---------------------------------------------------------------- attribute specified here
78- LL | const fn barfoo_unmarked() {}
79- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
80-
81- error: attribute `#[rustc_const_stable]` can only be applied to functions that are declared `#[stable]`
82- --> $DIR/rustc-const-stability-require-const.rs:57:1
83- |
84- LL | #[rustc_const_stable(feature = "barfoo_const", since = "1.0.0")]
85- | ---------------------------------------------------------------- attribute specified here
86- LL | pub const fn barfoo_unstable() {}
87- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88-
8973error: attributes `#[rustc_const_unstable]`, `#[rustc_const_stable]` and `#[rustc_const_stable_indirect]` require the function or method to be `const`
90- --> $DIR/rustc-const-stability-require-const.rs:63 :1
74+ --> $DIR/rustc-const-stability-require-const.rs:64 :1
9175 |
9276LL | pub fn not_a_const_fn() {}
9377 | ^^^^^^^^^^^^^^^^^^^^^^^
9478 |
9579help: make the function or method const
96- --> $DIR/rustc-const-stability-require-const.rs:63 :1
80+ --> $DIR/rustc-const-stability-require-const.rs:64 :1
9781 |
9882LL | pub fn not_a_const_fn() {}
9983 | ^^^^^^^^^^^^^^^^^^^^^^^
10084
101- error: aborting due to 9 previous errors
85+ error: aborting due to 7 previous errors
10286
0 commit comments