Skip to main content

RustResolutionError

Enum RustResolutionError 

Source
pub enum RustResolutionError {
    UnitMapping {
        unit: u32,
        reason: Box<str>,
    },
    UnknownFile {
        file: Box<str>,
    },
    InvalidCoordinate {
        file: Box<str>,
        line: u32,
        column: u32,
    },
    LimitExceeded {
        limit: u32,
    },
    ImportsNotConverged {
        rounds: u32,
    },
    SemanticContextMismatch {
        reason: Box<str>,
    },
    SemanticSharedSourceMismatch {
        warning: RustResolutionWarning,
    },
    Report(ResolutionReportError),
}
Expand description

Failure encountered while turning a resolution snapshot into a validated, snapshot-bound report.

Variants§

§

UnitMapping

The report’s units do not describe this snapshot’s units.

Fields

§unit: u32

The report-local unit identifier that could not be bound.

§reason: Box<str>

Why the unit does not describe a snapshot unit.

§

UnknownFile

A site names a file this snapshot does not hold.

Fields

§file: Box<str>

The repository-relative path the site named.

§

InvalidCoordinate

A site’s coordinate does not exist in the exact snapshotted source.

Fields

§file: Box<str>

The source the coordinate claimed to sit in.

§line: u32

The zero-based line.

§column: u32

The zero-based UTF-8 byte column.

§

LimitExceeded

One reference carries more candidates than the configured ceiling.

Candidate fan-out is never truncated: an overflowing reference refuses the whole resolution rather than reporting a misleading complete answer.

Fields

§limit: u32

The configured candidate ceiling.

§

ImportsNotConverged

The names use items bind did not settle within the bounded rounds.

Each round strictly adds, so a re-export chain shallower than the bound always settles. A chain deeper than it refuses the whole resolution rather than reporting the tail’s unfilled bindings as names that do not exist.

Fields

§rounds: u32

The number of rounds the fixed point was given.

§

SemanticContextMismatch

The semantic database does not hold what the snapshot claims.

Tier 2 never falls back: a database that holds other units, other sources, or other bytes answers for another repository state, so no candidate is promoted against it.

Fields

§reason: Box<str>

Which identity disagrees, and how.

§

SemanticSharedSourceMismatch

One physical source belongs to multiple resolution units that the semantic database cannot distinguish.

Fields

§warning: RustResolutionWarning

The project-level warning with the path, unit identities, and remediation.

§

Report(ResolutionReportError)

The report contract refused the stated facts.

Trait Implementations§

Source§

impl Debug for RustResolutionError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RustResolutionError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RustResolutionError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ResolutionReportError> for RustResolutionError

Source§

fn from(source: ResolutionReportError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, R> CollectAndApply<T, R> for T

Source§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

Source§

type Output = R

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

Source§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoBox<dyn Any + Sync + Send> for T
where T: Any + Send + Sync,

Source§

fn into_box(self) -> Box<dyn Any + Sync + Send>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoBox<dyn Any> for T
where T: Any,

Source§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Lookup<T> for T

Source§

fn into_owned(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

Source§

fn upcast(self, interner: I) -> U

Source§

impl<I, T> UpcastFrom<I, T> for T

Source§

fn upcast_from(from: T, _tcx: I) -> T

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more