diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-06-18 18:59:36 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-06-18 19:38:45 +0200 |
commit | 371d69b334837c51d0dc998ddefbd072ac8dde2f (patch) | |
tree | d030b2e5fbd6fe9c7bba68e5fb80d2546ab96f92 /checker/safe_typing.ml | |
parent | ecb032467557631ea60324c6afa55c91c133e40d (diff) |
Fixing the checker.
I had to remove code handling the -type-in-type option introduced by commit
9c732a5. We should fix it at some point, but I am not sure that using the
checker with a system known to be blatantly inconsistent makes much sense
anyway.
Diffstat (limited to 'checker/safe_typing.ml')
-rw-r--r-- | checker/safe_typing.ml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/checker/safe_typing.ml b/checker/safe_typing.ml index 1071e2f93..e644febe4 100644 --- a/checker/safe_typing.ml +++ b/checker/safe_typing.ml @@ -35,20 +35,15 @@ let full_add_module dp mb univs digest = genv := add_digest env dp digest (* Check that the engagement expected by a library extends the initial one *) -let check_engagement env (expected_impredicative_set,expected_type_in_type) = - let impredicative_set,type_in_type = Environ.engagement env in +let check_engagement env expected_impredicative_set = + let impredicative_set = Environ.engagement env in begin match impredicative_set, expected_impredicative_set with | PredicativeSet, ImpredicativeSet -> Errors.error "Needs option -impredicative-set." | _ -> () end; - begin - match type_in_type, expected_type_in_type with - | StratifiedType, TypeInType -> - Errors.error "Needs option -type-in-type." - | _ -> () - end + () (* Libraries = Compiled modules *) |