Open
Description
Describe the bug
Today we synthesize private fields to structs to ensure that when omitting their internal/private API we don't break the following rules:
We should add rules to API compat to validate that such changes don't occur to a struct.
- Adding a reference type field to a struct that didn't previously have a reference type field.
- Adding non-empty fields to a struct that didn't previously have non-empty fields.
- Adding fields to a struct that use a generic type when it previously did not have fields that used the generic type.
To Reproduce
Omit all the _dummy*
fields from the reference source in runtime.
Build.
Expect: API Compat emits diagnostics for all the missing fields.
Actual: No diagnostics.