pub enum ModuleResolveError {
DuplicateModule {
owner: DagId,
},
UnknownModule {
owner: DagId,
},
UnknownModuleAlias {
owner: DagId,
alias: ModuleAliasName,
},
DuplicateSymbol {
owner: DagId,
namespace: &'static str,
name: String,
first: Span,
duplicate: Span,
},
DuplicateImportName {
owner: DagId,
namespace: &'static str,
name: String,
first: Span,
duplicate: Span,
},
UnknownName {
owner: DagId,
namespace: &'static str,
name: String,
},
WrongUniverseName {
owner: DagId,
name: String,
expected: SurfaceNameKind,
actual: SurfaceNameKind,
},
UnexpectedDeclKind {
name: ResolvedName<Decl>,
expected: &'static str,
actual: DeclSymbolKind,
},
PrivateName {
owner: DagId,
namespace: &'static str,
name: String,
},
ExpectedIndexVariantPath {
owner: DagId,
path: String,
},
UnknownIndexVariant {
index: ResolvedName<Index>,
variant: IndexVariantName,
},
AmbiguousIndexVariant {
owner: DagId,
variant: IndexVariantName,
indexes: Vec<ResolvedName<Index>>,
},
}Expand description
Errors produced while building or using module-aware symbol tables.
Variants§
DuplicateModule
A module was added twice.
UnknownModule
No symbol table exists for a canonical module identity.
UnknownModuleAlias
A module qualifier’s first segment is not an alias in the current module.
DuplicateSymbol
Duplicate definition in one namespace.
DuplicateImportName
Duplicate local import/alias in one namespace.
UnknownName
A name was not found in the requested namespace.
WrongUniverseName
A name exists, but in a semantic universe that is not valid here.
UnexpectedDeclKind
A name exists but has the wrong declaration kind for the use site.
PrivateName
A name exists but is not public across module boundaries.
ExpectedIndexVariantPath
A path did not have enough segments to denote Index.Variant.
UnknownIndexVariant
The index exists, but the requested variant is absent.
AmbiguousIndexVariant
A bare variant exists on more than one visible index.
Trait Implementations§
Source§impl Clone for ModuleResolveError
impl Clone for ModuleResolveError
Source§fn clone(&self) -> ModuleResolveError
fn clone(&self) -> ModuleResolveError
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 ModuleResolveError
impl Debug for ModuleResolveError
Source§impl Display for ModuleResolveError
impl Display for ModuleResolveError
impl Eq for ModuleResolveError
Source§impl Error for ModuleResolveError
impl Error for ModuleResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ModuleResolveError
impl PartialEq for ModuleResolveError
Source§fn eq(&self, other: &ModuleResolveError) -> bool
fn eq(&self, other: &ModuleResolveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleResolveError
Auto Trait Implementations§
impl Freeze for ModuleResolveError
impl RefUnwindSafe for ModuleResolveError
impl Send for ModuleResolveError
impl Sync for ModuleResolveError
impl Unpin for ModuleResolveError
impl UnsafeUnpin for ModuleResolveError
impl UnwindSafe for ModuleResolveError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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.