Skip to content

Commit 9a8facb

Browse files
committed
Update rustc dev guide
1 parent d523b9f commit 9a8facb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/doc/rustc-dev-guide/src/stability.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ of the standard library raises it to a warning with
182182
`#![warn(deprecated_in_future)]`.
183183

184184
## unstable_feature_bound
185-
The `#[unstable_feature_bound(foo)]` attribute can be used together with `#[unstable]` attribute to mark an `impl` of stable type and stable trait as unstable. In std/core, an item annotated with `#[unstable_feature_bound(foo)]` can only be used by another item that is also annotated with `#[unstable_feature_bound(foo)]`. Outside of std/core, using an item with `#[unstable_feature_bound(foo)]` requires the feature to be enabled with `#![feature(foo)]` attribute on the crate. Currently, only `impl`s and free functions can be annotated with `#[unstable_feature_bound]`.
185+
The `#[unstable_feature_bound(foo)]` attribute can be used together with `#[unstable]` attribute to mark an `impl` of stable type and stable trait as unstable. In std/core, an item annotated with `#[unstable_feature_bound(foo)]` can only be used by another item that is also annotated with `#[unstable_feature_bound(foo)]`. Outside of std/core, using an item with `#[unstable_feature_bound(foo)]` requires the feature to be enabled with `#![feature(foo)]` attribute on the crate.
186+
187+
Currently, the items that can be annotated with `#[unstable_feature_bound]` are:
188+
- `impl`
189+
- free function
190+
- trait
186191

187192
[blog]: https://www.ralfj.de/blog/2018/07/19/const.html

0 commit comments

Comments
 (0)