[−][src]Enum rustc_passes::stability::InheritDeprecation

pub(in stability) enum InheritDeprecation {
    Yes,
    No,
}

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

Yes
No

Implementations

impl InheritDeprecation[src]

pub(in stability) fn yes(
    &self
) -> bool
[src]

Trait Implementations

impl Clone for InheritDeprecation[src]

Auto Trait Implementations

impl RefUnwindSafe for InheritDeprecation

impl Send for InheritDeprecation

impl Sync for InheritDeprecation

impl Unpin for InheritDeprecation

impl UnwindSafe for InheritDeprecation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.