Stream: git-wasmtime

Topic: wasmtime / PR #2570 wiggle: generate flags using `bitflags`


view this post on Zulip Wasmtime GitHub notifications bot (Jan 12 2021 at 02:31):

pchickey opened PR #2570 from pch/wiggle_flags_bitflags to main:

Wiggle generated flags that were sorta kinda like the ones generated by bitflags::bitflags!. The biggest stumbling block is that, for whatever reason, fn contains(&self, &Self) -> bool took the rhs by reference instead of value, despite deriving Copy.

For API consistency with the rest of the ecosystem, and to throw away some code, implement Wiggle's flags code generation using bitflags::bitflags!.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 12 2021 at 02:31):

pchickey requested alexcrichton for a review on PR #2570.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 12 2021 at 14:46):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 12 2021 at 17:51):

pchickey updated PR #2570 from pch/wiggle_flags_bitflags to main:

Wiggle generated flags that were sorta kinda like the ones generated by bitflags::bitflags!. The biggest stumbling block is that, for whatever reason, fn contains(&self, &Self) -> bool took the rhs by reference instead of value, despite deriving Copy.

For API consistency with the rest of the ecosystem, and to throw away some code, implement Wiggle's flags code generation using bitflags::bitflags!.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 12 2021 at 21:48):

pchickey merged PR #2570.


Last updated: Nov 22 2024 at 16:03 UTC