diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-19 18:48:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 18:48:43 -0500 |
commit | 48429734f10165d53584486af2d584ebde19577c (patch) | |
tree | 343b701c28caddcb3e919307d355ed9a3fc12f51 /src/codegen/derive_debug.rs | |
parent | de0180e326de222e6f750c62323947390405b66c (diff) | |
parent | ec8456bd74026bf5a0f1ff530b8fa36d893c2933 (diff) |
Auto merge of #996 - alexeyzab:add-no-partialeq-command, r=fitzgen
Add --no-partialeq <regex> flag
Related to #965.
- [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
This is my first pass at implementing this functionality, I haven't implemented the tests yet. I wanted to make sure I am on the right track, particularly when it comes to updating `MonotoneFramework::constrain`.
r? @fitzgen
Diffstat (limited to 'src/codegen/derive_debug.rs')
0 files changed, 0 insertions, 0 deletions