pub enum CompileError {
Parse(ParseFileError),
Elaborate(ElabError),
Type(TypeError),
Eval(EvalError),
NotADocument(&'static str),
Lower(LowerError),
CrossVersionUnsupportedName {
name: String,
dep: String,
slice: &'static str,
},
}Variants§
Parse(ParseFileError)
Elaborate(ElabError)
Type(TypeError)
Eval(EvalError)
NotADocument(&'static str)
Lower(LowerError)
CrossVersionUnsupportedName
A V0_0 dependency spliced into a V0_1 program referenced name, a
builtin primitive/type that is version-forked (bound, or shaped,
differently between V0_0 and V0_1 — see
typecheck::forked_type_names). The
merged program’s single base_env_with_version(V0_1) can only bind
ONE closure per name, so accepting this would silently mis-resolve
name to the WRONG version’s primitive.
The trailing — {} is v1::xver_adapt::forked_note, keyed on
name: WHY this particular name cannot cross — a missing bridge
feature (a wrapper could be written), or a REPRESENTATION fork
(page, font) where the generations disagree about what the
runtime value IS and no amount of bridge work helps.
Trait Implementations§
Source§impl Debug for CompileError
impl Debug for CompileError
Source§impl Display for CompileError
impl Display for CompileError
Source§impl Error for CompileError
impl Error for CompileError
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 From<ElabError> for CompileError
impl From<ElabError> for CompileError
Source§impl From<EvalError> for CompileError
impl From<EvalError> for CompileError
Source§impl From<LowerError> for CompileError
impl From<LowerError> for CompileError
Source§fn from(source: LowerError) -> Self
fn from(source: LowerError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFileError> for CompileError
impl From<ParseFileError> for CompileError
Source§fn from(source: ParseFileError) -> Self
fn from(source: ParseFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CompileError
impl !Send for CompileError
impl !Sync for CompileError
impl !UnwindSafe for CompileError
impl Freeze for CompileError
impl Unpin for CompileError
impl UnsafeUnpin for CompileError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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