Enum rustc::traits::IntercrateAmbiguityCause
[−]
[src]
pub enum IntercrateAmbiguityCause {
DownstreamCrate {
trait_desc: String,
self_desc: Option<String>,
},
UpstreamCrateUpdate {
trait_desc: String,
self_desc: Option<String>,
},
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Variants
DownstreamCrate🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields of DownstreamCrate
trait_desc: String | 🔬 This is a nightly-only experimental API. ( |
self_desc: Option<String> | 🔬 This is a nightly-only experimental API. ( |
UpstreamCrateUpdate🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields of UpstreamCrateUpdate
trait_desc: String | 🔬 This is a nightly-only experimental API. ( |
self_desc: Option<String> | 🔬 This is a nightly-only experimental API. ( |
Methods
impl IntercrateAmbiguityCause[src]
pub fn add_intercrate_ambiguity_hint<'a, 'tcx>(
&self,
err: &mut DiagnosticBuilder
)[src]
&self,
err: &mut DiagnosticBuilder
)
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Emits notes when the overlap is caused by complex intercrate ambiguities. See #23980 for details.
pub fn intercrate_ambiguity_hint(&self) -> String[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Clone for IntercrateAmbiguityCause[src]
fn clone(&self) -> IntercrateAmbiguityCause[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more