Prohibit lazy map fields.

They are a no-op in protoc.

PiperOrigin-RevId: 604324139
pull/15656/head
Chris Kennelly 10 months ago committed by Copybara-Service
parent 077fba6124
commit cd47034a68
  1. 2
      src/google/protobuf/compiler/cpp/field.cc

@ -226,6 +226,8 @@ std::unique_ptr<FieldGeneratorBase> MakeGenerator(const FieldDescriptor* field,
MessageSCCAnalyzer* scc) {
if (field->is_map()) {
ABSL_CHECK(
!(field->options().lazy() || field->options().unverified_lazy()));
return MakeMapGenerator(field, options, scc);
}
if (field->is_repeated()) {

Loading…
Cancel
Save