Skip to content

Add a nonuniform attribute silencing warning on coercions#15853

Merged
coqbot-app[bot] merged 2 commits intorocq-prover:masterfrom
proux01:nonuniform_attr
Apr 2, 2022
Merged

Add a nonuniform attribute silencing warning on coercions#15853
coqbot-app[bot] merged 2 commits intorocq-prover:masterfrom
proux01:nonuniform_attr

Conversation

@proux01
Copy link
Contributor

@proux01 proux01 commented Mar 24, 2022

This is a follow up of #15789 implementing a comment of @CohenCyril on Zulip: https://coq.zulipchat.com/#narrow/stream/237977-Coq-users/topic/Identity.20Coercions/near/276371166

The #[nonuniform] boolean attribute helps silencing the non-uniform-inheritance warning on coercions when the user needs to declare such a coercion on purpose.

  • Added / updated test-suite.
  • Added changelog.
  • Added / updated documentation.

Overlays (to be merged synchronously with the PR)

@proux01 proux01 added kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: coercions The coercion mechanism. labels Mar 24, 2022
@proux01 proux01 requested review from a team as code owners March 24, 2022 11:34
@SkySkimmer SkySkimmer requested a review from a team March 24, 2022 12:08
proux01 added a commit to proux01/coq-elpi that referenced this pull request Mar 25, 2022
proux01 added a commit to proux01/Mtac2 that referenced this pull request Mar 25, 2022
Copy link
Member

@jfehrle jfehrle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple suggestions but looks good.

proux01 added a commit to proux01/coq-elpi that referenced this pull request Mar 31, 2022
@proux01
Copy link
Contributor Author

proux01 commented Apr 1, 2022

This is looking for an assignee, maybe @ana-borges since you somewhat requested the feature? (I don't think you have push rights, but maybe we can ask)

proux01 and others added 2 commits April 1, 2022 10:55
The #[nonuniform] boolean attribute helps silencing the
non-uniform-inheritance warning on coercions when the user needs to
declare such a coercion on purpose.

Co-authored-by: Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>
@ana-borges
Copy link
Contributor

Sure! Indeed I don't think I have the rights to merge, unless that comes with being a member of the Coq organization, which I already am.

@ana-borges ana-borges self-assigned this Apr 1, 2022
@ana-borges ana-borges added this to the 8.16+rc1 milestone Apr 1, 2022
@proux01
Copy link
Contributor Author

proux01 commented Apr 1, 2022

Let's ask @Zimmi48 , I think you should have a look to the maintainer teams: https://github.com/orgs/coq/teams/contributors/teams
and tell him to which one you'd like to be added (for instance number-maintainers contains Sint63).

@ana-borges
Copy link
Contributor

I guess the bedrock2 failure is unrelated. @SkySkimmer are you done reviewing?

@SkySkimmer
Copy link
Contributor

yes

@ana-borges
Copy link
Contributor

@coqbot: merge now

@coqbot-app
Copy link
Contributor

coqbot-app bot commented Apr 2, 2022

@ana-borges: You can't merge the PR because it hasn't been approved yet.

@ana-borges
Copy link
Contributor

Right, so @SkySkimmer can you please approve?

@SkySkimmer
Copy link
Contributor

Why not do it yourself?

@ana-borges
Copy link
Contributor

Seemed to make more sense for the person who actually reviewed to approve and I didn't want to overstep. Consider my notion of the reviewing culture duly updated.

@ana-borges
Copy link
Contributor

@coqbot: merge now

@coqbot-app coqbot-app bot merged commit ed95a27 into rocq-prover:master Apr 2, 2022
@coqbot-app
Copy link
Contributor

coqbot-app bot commented Apr 2, 2022

@ana-borges: Please take care of the following overlays:

  • 15853-proux01-nonuniform_attr.sh

@SkySkimmer
Copy link
Contributor

I didn't review in depth, I just had a look.

gares added a commit to LPCIC/coq-elpi that referenced this pull request Apr 2, 2022
bors bot added a commit to Mtac2/Mtac2 that referenced this pull request Apr 2, 2022
355: Adapt to rocq-prover/rocq#15853 r=proux01 a=proux01

To be merged synchronously with the upstream PR rocq-prover/rocq#15853

Co-authored-by: Pierre Roux <pierre.roux@onera.fr>
@proux01 proux01 deleted the nonuniform_attr branch April 3, 2022 08:04
@proux01
Copy link
Contributor Author

proux01 commented Apr 4, 2022

Thanks everybody!

Columbus240 added a commit to Columbus240/topology that referenced this pull request Aug 20, 2023
This depends on coq v8.16 and is not usable on lower versions.

Relevant issues and PRs from the coq repo:
rocq-prover/rocq#15789, rocq-prover/rocq#15853, rocq-prover/rocq#4593, rocq-prover/rocq#3115
Columbus240 added a commit to Columbus240/topology that referenced this pull request Nov 19, 2023
This depends on coq v8.16 and is not usable on lower versions.

Relevant issues and PRs from the coq repo:
rocq-prover/rocq#15789, rocq-prover/rocq#15853, rocq-prover/rocq#4593, rocq-prover/rocq#3115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: coercions The coercion mechanism.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants