Skip to content

Fix typo in meta key name in elixir_quote #13570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elixir/lib/kernel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5543,7 +5543,7 @@ defmodule Kernel do

# Calls to Kernel functions must be fully-qualified to ensure
# reproducible builds, otherwise, this macro will generate ASTs
# with different metadata (:import, :context) depending on if
# with different metadata (:imports, :context) depending on if
# it is the bootstrapped version or not.
Elixir.Kernel.@(impl(true))

Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_quote.erl
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ do_quote(Other, _, _) ->
Other.

import_meta(Meta, Name, Arity, Q, E) ->
case (keyfind(import, Meta) == false) andalso
case (keyfind(imports, Meta) == false) andalso
elixir_dispatch:find_imports(Meta, Name, E) of
[] ->
case (Arity == 1) andalso keyfind(ambiguous_op, Meta) of
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/test/elixir/kernel/expansion_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ defmodule Kernel.ExpansionTest do
fn -> 17 end
end

assert clean_meta(expand(before_expansion), [:import, :context, :no_parens]) ==
assert clean_meta(expand(before_expansion), [:imports, :context, :no_parens]) ==
after_expansion
end

Expand Down