Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd --no-hash <regex> flag #1105
Conversation
highfive
assigned
fitzgen
Oct 26, 2017
highfive
added
the
S-awaiting-review
label
Oct 26, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
highfive
added
the
S-needs-rebase
label
Oct 26, 2017
fitzgen
approved these changes
Oct 26, 2017
|
Perfect! Thanks @seemyvest ! |
This comment has been minimized.
This comment has been minimized.
|
@bors-servo delegate+ Ah, looks like some merge conflicts snuck in. Once you've rebased and resolved them you can tell Thanks again! |
This comment has been minimized.
This comment has been minimized.
|
|
seemyvest
force-pushed the
seemyvest:issue-964
branch
from
03eda28
to
5d27156
Oct 27, 2017
This comment has been minimized.
This comment has been minimized.
|
No problem :) @bors-servo r+ I'll have a look and see what others I can do, feel free to point some out to me :) |
This comment has been minimized.
This comment has been minimized.
|
|
highfive
added
S-awaiting-merge
and removed
S-awaiting-review
S-needs-rebase
labels
Oct 27, 2017
This comment has been minimized.
This comment has been minimized.
bors-servo
added a commit
that referenced
this pull request
Oct 27, 2017
This comment has been minimized.
This comment has been minimized.
|
|
seemyvest commentedOct 26, 2017
•
edited
Issue #964
Adding a new RegexSet member to bindgen::Builder (similar to the whitelisted_types set).
A Builder method to add strings to that RegexSet.
Plumbing in src/options.rs to convert --no-hash CLI flags into invocations of the builder method.
Making the MonotoneFramework::constrain function in src/ir/analysis/derive_hash.rs check if the given item is explicitly marked not to be Hash, and if so, inserting it into the self.cannot_derive_hash set via return self.insert(id).
Tests!
When the no-hash type is transitively referenced by a whitelisted item
When the no-hash type is explicitly whitelisted
When the no-hash type is marked opaque
r? @fitzgen