diff options
author | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2019-06-28 14:06:49 +0200 |
---|---|---|
committer | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2019-06-28 14:06:49 +0200 |
commit | a1a8b095e6701d600476102f7f9e7f79665ffbb4 (patch) | |
tree | 4847f23927edce9a7ccaf4f5f42884058a1b0944 | |
parent | fa7f2e218d8c2ab5ddd92b42c1a3b98d24db8681 (diff) | |
download | elixir-a1a8b095e6701d600476102f7f9e7f79665ffbb4.tar.gz |
Do not add :no_autoload option
-rw-r--r-- | lib/elixir/lib/module/checker.ex | 1 | ||||
-rw-r--r-- | lib/elixir/test/elixir/module/checker_test.exs | 28 |
2 files changed, 0 insertions, 29 deletions
diff --git a/lib/elixir/lib/module/checker.ex b/lib/elixir/lib/module/checker.ex index f7a32c0ae..a9252c09a 100644 --- a/lib/elixir/lib/module/checker.ex +++ b/lib/elixir/lib/module/checker.ex @@ -76,7 +76,6 @@ defmodule Module.Checker do Keyword.get(meta, :context_module, false) and state.module != module -> [] - # TODO: Add no_autoload not Code.ensure_loaded?(module) -> warn(meta, state, {:undefined_module, module, fun, arity}) diff --git a/lib/elixir/test/elixir/module/checker_test.exs b/lib/elixir/test/elixir/module/checker_test.exs index 14a21b9f7..6a795444b 100644 --- a/lib/elixir/test/elixir/module/checker_test.exs +++ b/lib/elixir/test/elixir/module/checker_test.exs @@ -252,34 +252,6 @@ defmodule Module.CheckerTest do assert_warnings(files, warning) end - # test "doesn't load unloaded modules" do - # files = %{ - # "a.ex" => """ - # defmodule A do - # @compile {:autoload, false} - # @on_load :init - # def init do - # raise "oops" - # end - # end - # """, - # "b.ex" => """ - # defmodule B do - # def a, do: A.no_func - # def b, do: A.init - # end - # """ - # } - # - # warning = """ - # warning: function A.no_func/0 is undefined or private - # b.ex:2: B.a/0 - # - # """ - # - # assert_warnings(files, warning) - # end - test "groups multiple warnings in one file" do files = %{ "a.ex" => """ |