diff options
author | Alexey Zabelin <hello@alexeyzabelin.com> | 2017-09-16 18:41:34 -0400 |
---|---|---|
committer | Alexey Zabelin <hello@alexeyzabelin.com> | 2017-09-19 19:41:54 -0400 |
commit | ec8456bd74026bf5a0f1ff530b8fa36d893c2933 (patch) | |
tree | ed684cb51498bcd6a8f1bbe32b6900511f5c23f6 /src/codegen/derive_debug.rs | |
parent | 1906a264c1d3b4620d803dd4030750f981b42978 (diff) |
Add --no-partialeq <regex> flag
- [x] Add a new RegexSet member to bindgen::Builder (similar to the whitelisted_types set).
- [x] A Builder method to add strings to that RegexSet.
- [x] Plumbing in src/options.rs to convert --no-partialeq <regex> CLI flags into invocations of the builder method.
- [x] Make the MonotoneFramework::constrain function in src/ir/analysis/derive_partialeq.rs check if the given item is explicitly marked not to be Partialeq, and if so, insert it into the self.cannot_derive_partialeq set via return self.insert(id).
- [x] Tests!
- [x] When the no-partialeq type is transitively referenced by a whitelisted item
- [x] When the no-partialeq type is explicitly whitelisted
- [x] When the no-partialeq type is marked opaque
Fixes #965
Diffstat (limited to 'src/codegen/derive_debug.rs')
0 files changed, 0 insertions, 0 deletions