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

Rename the ConstS::val field as kind. #97935

Merged
merged 1 commit into from
Jun 14, 2022

Commits on Jun 14, 2022

  1. Rename the ConstS::val field as kind.

    And likewise for the `Const::val` method.
    
    Because its type is called `ConstKind`. Also `val` is a confusing name
    because `ConstKind` is an enum with seven variants, one of which is
    called `Value`. Also, this gives consistency with `TyS` and `PredicateS`
    which have `kind` fields.
    
    The commit also renames a few `Const` variables from `val` to `c`, to
    avoid confusion with the `ConstKind::Value` variant.
    nnethercote committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    93e4b6e View commit details
    Browse the repository at this point in the history