pub enum EmissionFault {
Show 13 variants
Reparse {
message: String,
},
CommandCount {
expected: usize,
found: usize,
},
Missing {
logos: String,
},
Kind {
logos: String,
expected: DeclarationKind,
},
Levels {
logos: String,
expected: Vec<String>,
found: Vec<String>,
},
Type {
logos: String,
},
Body {
logos: String,
},
Constructors {
logos: String,
},
Undeclared {
logos: String,
},
Statement {
logos: String,
},
Unmapped {
name: String,
},
Recheck {
logos: String,
},
Structure {
logos: String,
},
}Expand description
Why an emitted document does not reparse to the imported declarations. Every variant names the LOGOS declaration it concerns.
Variants§
Reparse
The fresh context refused the document.
CommandCount
The document holds a different number of declaration commands than it should.
Missing
A declaration the document must declare is absent.
Kind
A declaration was registered as a different kind (a theorem that unfolds, an axiom with a proof, …).
Levels
A declaration’s universe parameters differ.
Type
A declaration’s type differs.
Body
A transparent definition’s body differs.
Constructors
An inductive’s parameter count or constructors differ.
Undeclared
The document declared something its correspondence does not list.
Statement
The target’s reparsed statement differs from the reference translation of the Lean type.
Unmapped
A reference term names a constant the correspondence does not map.
Recheck
The independent re-checker did not confirm a reparsed definition at its declared type.
Structure
An inductive gained, lost or changed its structure η (its projections).
Trait Implementations§
Source§impl Clone for EmissionFault
impl Clone for EmissionFault
Source§fn clone(&self) -> EmissionFault
fn clone(&self) -> EmissionFault
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more