pub struct DependencyError {
pub file: PathBuf,
pub required_by: PathBuf,
pub text: String,
}Expand description
A type error in a module a check reached through require (see
CheckInfo::dependency_errors).
The checker checks a required module into the same environment and hands the
requirer its type; the module’s own errors stay with the module’s result. This is
that result’s error, said against the file that required it, so a report can name
both — a dependency is only ever checked through a require, since its sources are
not the project’s to walk.
Fields§
§file: PathBufThe file the error is in, as the checker found it on the search path.
required_by: PathBufThe file whose require (direct or through another dependency) pulled it in:
the first one on this check’s walk.
text: Stringfile:line:col: message, formatted as the file’s own errors are.
Trait Implementations§
Source§impl Clone for DependencyError
impl Clone for DependencyError
Source§fn clone(&self) -> DependencyError
fn clone(&self) -> DependencyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyError
impl Debug for DependencyError
impl Eq for DependencyError
Source§impl PartialEq for DependencyError
impl PartialEq for DependencyError
impl StructuralPartialEq for DependencyError
Auto Trait Implementations§
impl Freeze for DependencyError
impl RefUnwindSafe for DependencyError
impl Send for DependencyError
impl Sync for DependencyError
impl Unpin for DependencyError
impl UnsafeUnpin for DependencyError
impl UnwindSafe for DependencyError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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