std uses a lot of unstable language features. While core will most likely always have to use language features because it defines things that are part of the core of the language, we can strive for std to eventually be free of unstable language features.
Some of these we'll need to stabilize, but some others we might be able to simply remove with some small changes to the code.
(See also #94971 for the library features used by std.)
These are the language features we currently use in std: (This does not include core or alloc.)
- Macro related:
- Const eval:
- Panic related:
- Global allocator: (RFC 2492 might be of help here)
- Diagnostics:
- Rustdoc:
- Other language features:
stduses a lot of unstable language features. Whilecorewill most likely always have to use language features because it defines things that are part of the core of the language, we can strive forstdto eventually be free of unstable language features.Some of these we'll need to stabilize, but some others we might be able to simply remove with some small changes to the code.
(See also #94971 for the library features used by
std.)These are the language features we currently use in
std: (This does not includecoreoralloc.)concat_identsmacro_metavar_expr_concatc_unwind#116088PhantomDataeverywhere.