[−][src]Struct rustc_lint::builtin::TypeAliasBounds

pub struct TypeAliasBounds;

Lint for trait and lifetime bounds in type aliases being mostly ignored. They are relevant when using associated types, but otherwise neither checked at definition site nor enforced at use site.

Implementations

impl TypeAliasBounds[src]

pub fn get_lints() -> LintArray[src]

impl TypeAliasBounds[src]

fn is_type_variable_assoc(qpath: &QPath<'_>) -> bool[src]

fn suggest_changing_assoc_types(ty: &Ty<'_>, err: &mut DiagnosticBuilder<'_>)[src]

Trait Implementations

impl Clone for TypeAliasBounds[src]

impl Copy for TypeAliasBounds[src]

impl<'tcx> LateLintPass<'tcx> for TypeAliasBounds[src]

impl LintPass for TypeAliasBounds[src]

Auto Trait Implementations

impl RefUnwindSafe for TypeAliasBounds[src]

impl Send for TypeAliasBounds[src]

impl Sync for TypeAliasBounds[src]

impl Unpin for TypeAliasBounds[src]

impl UnwindSafe for TypeAliasBounds[src]

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.