Skip to content

Commit c22ea6e

Browse files
committed
Fix bootstrap
1 parent faffec0 commit c22ea6e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lib/elixir/lib/module/types/expr.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ defmodule Module.Types.Expr do
504504
context
505505
end
506506

507+
defp for_option({:into, expr}, _meta, _stack, context) when is_list(expr) or is_binary(expr) do
508+
context
509+
end
510+
507511
defp for_option({:into, expr}, meta, stack, context) do
508512
{type, context} = of_expr(expr, stack, context)
509513

lib/elixir/unicode/security.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,11 @@ defmodule String.Tokenizer.Security do
146146
defp dir_breakdown(s) do
147147
init = "'#{s}' includes right-to-left characters:\n"
148148

149-
for codepoint <- s, into: init do
150-
hex = :io_lib.format(~c"~4.16.0B", [codepoint])
151-
" \\u#{hex} #{[codepoint]} #{String.Tokenizer.dir(codepoint)}\n"
152-
end
149+
init <>
150+
for codepoint <- s do
151+
hex = :io_lib.format(~c"~4.16.0B", [codepoint])
152+
" \\u#{hex} #{[codepoint]} #{String.Tokenizer.dir(codepoint)}\n"
153+
end
153154
end
154155

155156
# make charlist match visual order by reversing spans of {rtl, neutral}

0 commit comments

Comments
 (0)