Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no-partialeq <regex> flag #996

Merged
merged 1 commit into from
Sep 20, 2017

Commits on Sep 19, 2017

  1. 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 rust-lang#965
    alexeyzab committed Sep 19, 2017
    Configuration menu
    Copy the full SHA
    ec8456b View commit details
    Browse the repository at this point in the history