c3b30df798
The analyzer and CFE now report a warning on subclasses of `Struct` which have no native fields. Adapted from https://dart-review.googlesource.com/c/sdk/+/180189 to only deprecate, but not disallow empty structs. Rolls `package:ffi` forward to migrate `Utf8` and `Utf16` to `Opaque` to prevent tests from failing on those generating warnings for empty structs. Issue: https://github.com/dart-lang/sdk/issues/43974 TEST=tests/ffi/vmspecific_static_checks_test.dart Change-Id: Ia364e31da66cb195570c2e2b729d03dd261f28a2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180361 Reviewed-by: Clement Skau <cskau@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>