From 2c733c97e8d176839227c633bf09b66734376b45 Mon Sep 17 00:00:00 2001 From: Monadic Cat Date: Sat, 12 Sep 2020 17:06:58 -0500 Subject: [PATCH] correct attribute used here --- src/stability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stability.md b/src/stability.md index 9255f4b5..1cbbcb84 100644 --- a/src/stability.md +++ b/src/stability.md @@ -62,7 +62,7 @@ there's no way to add `const` to functions in `extern` blocks for now. ## rustc_const_stable -The `#[stable(feature = "foo", "since = "1.420.69")]` attribute explicitly marks +The `#[rustc_const_stable(feature = "foo", "since = "1.420.69")]` attribute explicitly marks a `const fn` as having its constness be `stable`. This attribute can make sense even on an `unstable` function, if that function is called from another `rustc_const_stable` function.