mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-13 23:41:38 +03:00
Don't add extra dependency for the same module
This commit is contained in:
parent
fad47f57da
commit
c1914ccc60
@ -293,7 +293,7 @@ addDep :: Name -> RenameM ()
|
||||
addDep x =
|
||||
do cur <- getCurMod
|
||||
deps <- case nameInfo x of
|
||||
Declared m _ | cur `containsModule` m ->
|
||||
Declared m _ | cur /= m && cur `containsModule` m ->
|
||||
do mb <- nestedModuleOrig m
|
||||
pure case mb of
|
||||
Just y -> Set.fromList [x,y]
|
||||
|
Loading…
Reference in New Issue
Block a user