@@ -70,33 +70,17 @@ help: make the function or method const
70
70
LL | pub extern "C" fn foo_c() {}
71
71
| ^^^^^^^^^^^^^^^^^^^^^^^^^
72
72
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
-
89
73
error: 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
91
75
|
92
76
LL | pub fn not_a_const_fn() {}
93
77
| ^^^^^^^^^^^^^^^^^^^^^^^
94
78
|
95
79
help: 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
97
81
|
98
82
LL | pub fn not_a_const_fn() {}
99
83
| ^^^^^^^^^^^^^^^^^^^^^^^
100
84
101
- error: aborting due to 9 previous errors
85
+ error: aborting due to 7 previous errors
102
86
0 commit comments