pub enum CompileError {
ShadowedLabel(String),
UndeclaredLabel(String),
ContinueOutsideLoop,
BreakOutsideLoop,
FollowingCodeUnreachable,
UnreachableStatement,
UnproductiveLoop,
UnproductiveContinue,
}
Expand description
A compilation error due to invalid (but parseable) input in the surface macro syntax.
Variants§
ShadowedLabel(String)
Error resulting from 'a loop { ... 'a loop { ... }}
.
UndeclaredLabel(String)
Error resulting from continue 'a
or break 'a
which are inside a loop
, but not inside
any loop with the label 'a
.
ContinueOutsideLoop
Error resulting from any call to continue
outside of a loop
.
BreakOutsideLoop
Error resulting from any call to break
outside of a loop
.
FollowingCodeUnreachable
Error resulting from control flow analysis finding that a statement unconditionally jumps away from following code.
UnreachableStatement
Error resulting from control flow analysis finding that a statement can never be reached because of preceding control flow.
UnproductiveLoop
Error resulting from unproductive loop analysis finding that a loop is unproductive and cannot be compiled without resulting in typechecker overflow.
UnproductiveContinue
Error resulting from any continue
or break
which produce an unproductive loop.
Trait Implementations§
Source§impl Clone for CompileError
impl Clone for CompileError
Source§fn clone(&self) -> CompileError
fn clone(&self) -> CompileError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§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
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
Source§impl Hash for CompileError
impl Hash for CompileError
Source§impl Ord for CompileError
impl Ord for CompileError
Source§fn cmp(&self, other: &CompileError) -> Ordering
fn cmp(&self, other: &CompileError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CompileError
impl PartialEq for CompileError
Source§impl PartialOrd for CompileError
impl PartialOrd for CompileError
impl Eq for CompileError
impl StructuralPartialEq for CompileError
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.