aboutsummaryrefslogtreecommitdiffstats
path: root/lib/typer/src/typer.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-12-22 10:26:19 +0100
committerHans Bolinder <[email protected]>2017-01-11 09:34:59 +0100
commit8786ac9ef56e34c6c2910320d2b291452853b034 (patch)
tree7e950af5ae1bcfc4a26b01a5cf25aaaad654dabc /lib/typer/src/typer.erl
parente083770cdea7b1dfdc9b74a3ae58b1cc8da8f3a9 (diff)
downloadotp-8786ac9ef56e34c6c2910320d2b291452853b034.tar.gz
otp-8786ac9ef56e34c6c2910320d2b291452853b034.tar.bz2
otp-8786ac9ef56e34c6c2910320d2b291452853b034.zip
dialyzer: Use maps instead of dict for module contracts map
Diffstat (limited to 'lib/typer/src/typer.erl')
-rw-r--r--lib/typer/src/typer.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/typer/src/typer.erl b/lib/typer/src/typer.erl
index 563b1bbcb5..88b654693b 100644
--- a/lib/typer/src/typer.erl
+++ b/lib/typer/src/typer.erl
@@ -156,7 +156,7 @@ extract(#analysis{macros = Macros,
fun(Module, TmpPlt) ->
{ok, ModuleContracts} = dict:find(Module, Contracts),
SpecList = [{MFA, Contract}
- || {MFA, {_FileLine, Contract}} <- dict:to_list(ModuleContracts)],
+ || {MFA, {_FileLine, Contract}} <- maps:to_list(ModuleContracts)],
dialyzer_plt:insert_contract_list(TmpPlt, SpecList)
end,
NewTrustPLT = lists:foldl(FoldFun, TrustPLT, Modules),