serialize arena_collections::List as a sequence
commitb9a281dbb46d84942a5b65f576c36fe664455c85
authorEdwin Smith <smith@fb.com>
Tue, 6 Sep 2022 14:20:35 +0000 (6 07:20 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 6 Sep 2022 14:20:35 +0000 (6 07:20 -0700)
tree7104c76b6ff77f041eb2905db48e3f42e1134cdd
parent6c0b85689876bb052ea0ed957d471a18b8977b74
serialize arena_collections::List as a sequence

Summary:
I'd like to be able to compare oxidized_by_ref and oxidized versions of
the same data structure (direct_decl_parser::ParsedFile), by dumping
them both to JSON and running diff.

For that to work, arena_collections::List need to serialize as a sequence
in the same order as Vec.

Reviewed By: shayne-fletcher

Differential Revision: D38912184

fbshipit-source-id: 7bf434bbd4dc582f8e56bbd16bf3944c3a9b9a8f
hphp/hack/src/arena_collections/list.rs
hphp/hack/src/utils/arena_deserializer/impls.rs