Commit e2446c0d authored by niteria's avatar niteria
Browse files

Kill nameSetElems in findImportUsage

nameSetElems is nondeterministic and while I think we don't need
determinism here it doesn't hurt.

Test Plan: ./validate

Reviewers: ezyang, bgamari, austin, simonmar

Reviewed By: simonmar

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #4012
parent d753ea2a
......@@ -1655,7 +1655,7 @@ findImportUsage imports used_gres
= foldr extendImportMap Map.empty used_gres
unused_decl decl@(L loc (ImportDecl { ideclHiding = imps }))
= (decl, nubAvails used_avails, nameSetElems unused_imps)
= (decl, nubAvails used_avails, nameSetElemsStable unused_imps)
used_avails = Map.lookup (srcSpanEnd loc) import_usage `orElse` []
-- srcSpanEnd: see Note [The ImportMap]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment