Update check_file_imports.lean
This commit is contained in:
parent
987bbf6013
commit
03bc9f3cd2
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ def arrayImportSorted (imports : Array Import) : IO Bool := do
|
|||
return true if this is NOT the case. -/
|
||||
def checkMissingImports (modData : ModuleData) (reqImports : Array Name) :
|
||||
IO Bool := do
|
||||
let names : HashSet Name := HashSet.ofArray (modData.imports.map (·.module))
|
||||
let names : Std.HashSet Name := Std.HashSet.ofArray (modData.imports.map (·.module))
|
||||
let mut warned := false
|
||||
let nameArray := reqImports.filterMap (
|
||||
fun req => if !names.contains req then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue