Skip to content

Commit

Permalink
Fix class merge issue; Update to Protobuf v3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarp committed Jun 1, 2020
1 parent 29f6bca commit dc28539
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions conformance/failure_list_d.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Required.Proto3.JsonInput.EmptyFieldMask.ProtobufOutput
Required.Proto3.JsonInput.RejectTopLevelNull

# To be analysed and eventually fixed
Required.Proto2.ProtobufInput.RepeatedScalarMessageMerge.ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataRepeated.ENUM.PackedInput.ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataScalar.BOOL[0].ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataScalar.BYTES[0].ProtobufOutput
Expand All @@ -55,7 +54,5 @@ Required.Proto2.ProtobufInput.ValidDataScalar.STRING[0].ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataScalar.UINT32[0].ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataScalar.UINT32[5].ProtobufOutput
Required.Proto2.ProtobufInput.ValidDataScalar.UINT64[0].ProtobufOutput
Required.Proto3.ProtobufInput.RepeatedScalarMessageMerge.JsonOutput
Required.Proto3.ProtobufInput.RepeatedScalarMessageMerge.ProtobufOutput
Required.Proto3.ProtobufInput.ValidDataRepeated.ENUM.PackedInput.JsonOutput
Required.Proto3.ProtobufInput.ValidDataRepeated.ENUM.PackedInput.ProtobufOutput
2 changes: 1 addition & 1 deletion conformance/run-conformance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if cd protobuf >/dev/null 2>&1; then
else
git clone https://github.com/google/protobuf.git && cd protobuf
fi
git checkout tags/v3.10.0 --detach
git checkout tags/v3.12.2 --detach

git submodule update --init --recursive

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/decoding.d
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ if (isInputRange!R && (is(T == class) || is(T == struct)))

R fieldRange = inputRange.takeLengthPrefixed;

field = fieldRange.fromProtobuf!T;
field = fieldRange.fromProtobuf!T(field);
}

void skipUnknown(R)(ref R inputRange, WireType wireType)
Expand Down

0 comments on commit dc28539

Please sign in to comment.