pub enum ResolvedProgramManifestError {
MissingEntry,
ModuleValidation {
message: String,
},
SourceRoot {
path: PathBuf,
message: String,
},
SourceOutsideRoot {
path: PathBuf,
source_root: PathBuf,
},
NonUtf8Path {
path: PathBuf,
},
MissingSourceText {
path: PathBuf,
},
MissingLogicalPath {
path: PathBuf,
},
StatementParse {
source_path: String,
statement_ordinal: usize,
message: String,
},
InvalidStatementSpan {
source_path: String,
statement_ordinal: usize,
start: usize,
end: usize,
source_len: usize,
},
StatementWithoutObject {
source_path: String,
statement_ordinal: usize,
},
ImportGraphMismatch {
source_path: String,
declarations: usize,
resolved_edges: usize,
import_objects: usize,
},
MissingImportTarget {
path: PathBuf,
},
}Expand description
Fail-closed errors produced while binding a resolved closure to a source root.
Variants§
MissingEntry
The resolver was not loaded from an exact entry file.
ModuleValidation
The resolved import surface is not valid under execution-time merge rules.
SourceRoot
The declared source root is missing, inaccessible, or not a directory.
SourceOutsideRoot
A resolved source escapes the declared source root.
Fields
NonUtf8Path
A relative source path cannot be represented in the JSON contract.
MissingSourceText
The resolver lacks the exact source text used for a loaded AST.
MissingLogicalPath
A module in the current closure has no current-entry logical path.
StatementParse
A parser-owned statement could not be classified by the canonical parser.
Fields
InvalidStatementSpan
A parser-owned statement span does not address bytes in the retained source.
Fields
StatementWithoutObject
A parsed statement produced no source-level AST object.
Fields
ImportGraphMismatch
Authored imports, resolved edges, and import source objects disagree.
Fields
MissingImportTarget
A resolved edge points outside the loaded reachable closure.
Trait Implementations§
Source§impl Clone for ResolvedProgramManifestError
impl Clone for ResolvedProgramManifestError
Source§fn clone(&self) -> ResolvedProgramManifestError
fn clone(&self) -> ResolvedProgramManifestError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedProgramManifestError
impl Debug for ResolvedProgramManifestError
impl Eq for ResolvedProgramManifestError
Source§impl Error for ResolvedProgramManifestError
impl Error for ResolvedProgramManifestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()