diff --git a/apps/common/lib/elixir/features.ex b/apps/common/lib/elixir/features.ex index 731db9d9c..87185cb27 100644 --- a/apps/common/lib/elixir/features.ex +++ b/apps/common/lib/elixir/features.ex @@ -1,6 +1,4 @@ defmodule Elixir.Features do - alias Lexical.VM.Versions - def with_diagnostics? do function_exported?(Code, :with_diagnostics, 1) end @@ -36,6 +34,6 @@ defmodule Elixir.Features do Issue to track: https://github.com/erlang/otp/issues/8682 """ def can_use_compressed_ets_table? do - Version.match?(Versions.current().erlang, "< 27.0.0") + System.otp_release() < "27" end end