Skip to main content

Module stability

Module stability 

Source

Re-exportsยง

use std::num::NonZero; ๐Ÿ”’
use rustc_ast::attr::version::RustcVersion; ๐Ÿ”’
use rustc_macros::BlobDecodable; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::PrintAttribute; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::ErrorGuaranteed; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use crate::PrintAttribute; ๐Ÿ”’

Structsยง

ConstStability
Represents the #[rustc_const_unstable] and #[rustc_const_stable] attributes.
DefaultBodyStability
Represents the #[rustc_default_body_unstable] attribute.
PartialConstStability
Excludes const_stable_indirect. This is necessary because when -Zforce-unstable-if-unmarked is set, we need to encode standalone #[rustc_const_stable_indirect] attributes
Stability
Represents the following attributes:

Enumsยง

StabilityLevel
The available stability levels.
StableSince
Rust release in which a feature is stabilized.
UnstableReason

Constantsยง

VERSION_PLACEHOLDER
The version placeholder that recently stabilized features contain inside the since field of the #[stable] attribute.