You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adapt to https://github.com/rocq-prover/rocq/pull/22586 - #613
Predictably, this triggers one warning per source file on all the supported Coq/Rocq versions
Warning: There is no flag or option with this name:
"Old IfThen Without Bool Coercion". [unknown-option,option]
So: no.
Is there a way to know where if is currently used in CompCert on types other than bool ? Obviously, sumbool, but I'd rather make sure there are no other.
Is there a (backward-compatible) way to declare coercions from these types to bool that would please the next versions of Rocq but not break the current versions?
Predictably, this triggers one warning per source file on all the supported Coq/Rocq versions
Warning: There is no flag or option with this name:
"Old IfThen Without Bool Coercion". [unknown-option,option]
You could silence it but I'm not sure I would recommend it. Alternatively, we could add a #[warning="-unknown-option"] Set Old IfThen Without Bool Coercion. at the beginning of each file.
Is there a way to know where if is currently used in CompCert on types other than bool ? Obviously, sumbool, but I'd rather make sure there are no other.
Compiling on Rocq 9.3 with -w +non-boolean-if indicates there isn't (at least for the target built in Rocq CI, didn't check all of them).
Is there a (backward-compatible) way to declare coercions from these types to bool that would please the next versions of Rocq but not break the current versions?
Well, that's exactly what the current PR is doing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapt to rocq-prover/rocq#22586