Enum rustc_passes::stability::InheritDeprecation [−][src]
enum InheritDeprecation {
Yes,
No,
}Expand description
Whether to inherit deprecation flags for nested items. In most cases, we do want to inherit
deprecation, because nested items rarely have individual deprecation attributes, and so
should be treated as deprecated if their parent is. However, default generic parameters
have separate deprecation attributes from their parents, so we do not wish to inherit
deprecation in this case. For example, inheriting deprecation for T in Foo<T>
would cause a duplicate warning arising from both Foo and T being deprecated.
Variants
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InheritDeprecationimpl Send for InheritDeprecationimpl Sync for InheritDeprecationimpl Unpin for InheritDeprecationimpl UnwindSafe for InheritDeprecationBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte