[−][src]Enum rustc_trait_selection::traits::select::IntercrateAmbiguityCause

pub enum IntercrateAmbiguityCause {
    DownstreamCrate {
        trait_desc: String,
        self_desc: Option<String>,
    },
    UpstreamCrateUpdate {
        trait_desc: String,
        self_desc: Option<String>,
    },
    ReservationImpl {
        message: String,
    },
}

Variants

DownstreamCrate

Fields of DownstreamCrate

trait_desc: Stringself_desc: Option<String>
UpstreamCrateUpdate

Fields of UpstreamCrateUpdate

trait_desc: Stringself_desc: Option<String>
ReservationImpl

Fields of ReservationImpl

message: String

Implementations

impl IntercrateAmbiguityCause[src]

pub fn add_intercrate_ambiguity_hint(&self, err: &mut DiagnosticBuilder<'_>)[src]

Emits notes when the overlap is caused by complex intercrate ambiguities. See #23980 for details.

pub fn intercrate_ambiguity_hint(&self) -> String[src]

Trait Implementations

impl Clone for IntercrateAmbiguityCause[src]

impl Debug for IntercrateAmbiguityCause[src]

Auto Trait Implementations

impl RefUnwindSafe for IntercrateAmbiguityCause

impl Send for IntercrateAmbiguityCause

impl Sync for IntercrateAmbiguityCause

impl Unpin for IntercrateAmbiguityCause

impl UnwindSafe for IntercrateAmbiguityCause

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.

impl<T> WithConstness for T[src]