Skip to content
Snippets Groups Projects
Commit 11113899 authored by Ralf Jung's avatar Ralf Jung
Browse files

coq-lint: enforce TC opaque having locality annotations

parent b8561191
No related branches found
No related tags found
1 merge request!473Take advantage of new Coq features in Coq 8.15
Pipeline #81687 passed
...@@ -4,7 +4,7 @@ set -e ...@@ -4,7 +4,7 @@ set -e
FILE="$1" FILE="$1"
if grep -E -n '^\s*((Existing\s+|Program\s+|Declare\s+)?Instance|Arguments|Remove|Hint\s+(Extern|Constructors|Resolve|Immediate|Mode|Opaque|Transparent|Unfold|Rewrite)|(Open|Close)\s+Scope|Opaque|Transparent)\b' "$FILE"; then if grep -E -n '^\s*((Existing\s+|Program\s+|Declare\s+)?Instance|Arguments|Remove|Hint\s+(Extern|Constructors|Resolve|Immediate|Mode|Opaque|Transparent|Unfold|Rewrite)|(Open|Close)\s+Scope|Opaque|Transparent|Typeclasses (Opaque|Transparent))\b' "$FILE"; then
echo "ERROR: $FILE contains 'Instance'/'Arguments'/'Hint' or another side-effect without locality (see above)." echo "ERROR: $FILE contains 'Instance'/'Arguments'/'Hint' or another side-effect without locality (see above)."
echo "Please add 'Global' or 'Local' as appropriate." echo "Please add 'Global' or 'Local' as appropriate."
echo echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment