Have implicit arguments with "Asymmetric Patterns"#21947
Have implicit arguments with "Asymmetric Patterns"#21947proux01 wants to merge 3 commits intorocq-prover:masterfrom
Conversation
Add a flag "Asymmetric Patterns No Implicits" (false by default) that can be set to true to retrieve the previous behavior of "Asymmetric Patterns" (needed for backward compat).
d2251c7 to
071a812
Compare
071a812 to
fd3b165
Compare
SkySkimmer
left a comment
There was a problem hiding this comment.
I see overlays have #[warning="-unknown-option"], do they really have this warning as error? If not IMO we shouldn't locally override it.
| @@ -0,0 +1,8 @@ | |||
| - **Changed:** | |||
| the bahavior of the :flag:`Asymmetric Patterns` flag, which no | |||
There was a problem hiding this comment.
| the bahavior of the :flag:`Asymmetric Patterns` flag, which no | |
| the behavior of the :flag:`Asymmetric Patterns` flag, which no |
In most cases (not all) probably not.
I'm not sure. As a user I'd rather avoid having a spurious warning on older versions of Rocq. The warning may become non spurious if we ever remove the flag one day, but then we'd probably deprecate it before, so users would have a chance to see a warning anyway. No strong opinion though (other than for mathcomp were we actually check compilation without warning on last release so it's mandatory there). |
It's already deprecated in this PR no? |
|
Right, so I'd say we are fine. |
Fixes / closes #21769
To ease the transition to the new behavior, a new flag
Asymmetric Patterns No Implicits(off by default) enables to retrieve the previous behavior.Documented any new / changed user messages.Updated documented syntax by runningmake doc_gram_rsts.Overlays (to be merged before the current PR)
All overlays are only setting the new
Asymmetric Patterns No Implicitsflag whereverAsymmetric Patternswas already set.