mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Diagnose incorrect and private fields in record structs
This commit is contained in:
parent
55c75450fb
commit
8f5fee4a5a
10 changed files with 192 additions and 81 deletions
|
@ -194,7 +194,7 @@ pub(crate) type InferResult<T> = Result<InferOk<T>, TypeError>;
|
|||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub enum InferenceDiagnostic {
|
||||
NoSuchField {
|
||||
expr: ExprId,
|
||||
field: ExprOrPatId,
|
||||
private: bool,
|
||||
},
|
||||
PrivateField {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue