[Merged by Bors] - feat(Tactic/ToFun): warn if provided name matches autogenerated one#39598
[Merged by Bors] - feat(Tactic/ToFun): warn if provided name matches autogenerated one#39598grunweg wants to merge 5 commits into
Conversation
PR summary dd364d5681Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
e30fe47 to
78dad02
Compare
78dad02 to
fd0f0cd
Compare
|
The warning message is different from the one used in |
|
Sure, but which one should be used? |
|
Thanks! Looks good. :) maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by thorimur. |
|
(Edited the title and PR description :) ) |
|
This is not part of this PR, but what happens if you use |
|
Thanks! bors merge |
…39598) This PR advises the user to remove a name they explicitly provided to `@[to_fun]` if it matches the name `@[to_fun]` would autogenerate.
|
Pull request successfully merged into master. Build succeeded: |
Indeed, good catch! (And to_additive has the same issue.) Should this be disallowed, or should the |
|
I am not sure: I think that, if it were banned, no current use would get flagged. However, if it gets banned, I am not sure how you could signal the legitimate desire of "place the |
|
Indeed, I just arrived at the same conclusion (and found another bug in the naming generation). |
|
I have made #39962 with that fix |
…eanprover-community#39598) This PR advises the user to remove a name they explicitly provided to `@[to_fun]` if it matches the name `@[to_fun]` would autogenerate.
…eanprover-community#39598) This PR advises the user to remove a name they explicitly provided to `@[to_fun]` if it matches the name `@[to_fun]` would autogenerate.
…eanprover-community#39598) This PR advises the user to remove a name they explicitly provided to `@[to_fun]` if it matches the name `@[to_fun]` would autogenerate.
This PR advises the user to remove a name they explicitly provided to
@[to_fun]if it matches the name@[to_fun]would autogenerate.