invert the sense of happly_decl_has_no_reified_generics()
commit4feee43eb38cb10bc62504b0965590dba7e9f73c
authorEdwin Smith <smith@fb.com>
Mon, 7 Mar 2022 18:46:19 +0000 (7 10:46 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 7 Mar 2022 18:46:19 +0000 (7 10:46 -0800)
tree344b17c0aeb7449725bf1c8e95285396e21b613b
parent94037b41a2ac27998de2ba20e3209ffffb052daa
invert the sense of happly_decl_has_no_reified_generics()

Summary:
This is the first place in hackc we call a DeclProvider to resolve external
classnames. I started to refine it's api to be a tri-state so we can distinguish
"I don't know" cases from "definitely yes" and "definitely no", but managed
to hopelessly confuse myself with double negatives.

This diff flips the sense of the API to match the comment, and adds some
asserts and exhaustive pattern matches, but should result in no bytecode changes
(with or without DeclProviders).

Reviewed By: aorenste

Differential Revision: D34617436

fbshipit-source-id: a0f581a243edeb95b432f6c87f5291014e3ec421
hphp/hack/Cargo.lock
hphp/hack/src/hackc/emitter/cargo/emit_body/Cargo.toml
hphp/hack/src/hackc/emitter/emit_body.rs
hphp/hack/src/hackc/emitter/reified_generics_helpers.rs