struct Ambiguity {
span: Span,
name: Symbol,
first: Span,
second: Span,
}Expand description
A name that two competing glob imports bind to different items:
ⓘ
mod a { pub struct S; }
mod b { pub struct S; }
use a::*;
use b::*;
#[flux::spec(fn(x: S))]
fn f(x: a::S) {}Fields§
§span: SpanThe use site that hit the ambiguity: the S inside the signature.
name: SymbolThe contested name: S.
first: SpanWhere the first candidate was brought into scope: the use a::*; statement.
second: SpanSame for the second candidate: use b::*;. It can coincide with first when a single
glob imports a module that is itself ambiguously re-exporting the name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ambiguity
impl RefUnwindSafe for Ambiguity
impl Send for Ambiguity
impl Sync for Ambiguity
impl Unpin for Ambiguity
impl UnwindSafe for Ambiguity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more