Report unsuffixed record literal field with effectful function

This commit is contained in:
Agus Zubiaga 2024-10-22 19:50:32 -03:00
parent ea35094b28
commit 215de707fa
No known key found for this signature in database
7 changed files with 121 additions and 21 deletions

View file

@ -45,8 +45,14 @@ pub enum TypeError {
FxInPureFunction(Region, FxCallKind, Option<Region>),
FxInTopLevel(Region, FxCallKind),
PureStmt(Region),
UnsuffixedEffectfulFunction(Region, Symbol),
SuffixedPureFunction(Region, Symbol),
UnsuffixedEffectfulFunction(Region, SuffixErrorKind),
SuffixedPureFunction(Region, SuffixErrorKind),
}
#[derive(Debug, Clone)]
pub enum SuffixErrorKind {
Let(Symbol),
RecordField,
}
impl TypeError {