Diagnose private fields in record constructor

This commit is contained in:
Lukas Wirth 2023-09-08 23:19:30 +02:00
parent c405509f2e
commit 55c75450fb
6 changed files with 84 additions and 27 deletions

View file

@ -174,6 +174,7 @@ pub struct MalformedDerive {
#[derive(Debug)]
pub struct NoSuchField {
pub field: InFile<AstPtr<ast::RecordExprField>>,
pub private: bool,
}
#[derive(Debug)]