sabiwara
acb5832c69
Fix dialyzer tests in OTP26 ( #12486 )
2023-04-03 09:28:11 +02:00
Zach Allaun
f026cb3756
Fix column count when tokenizing escaped interpolations ( #12504 )
2023-03-30 23:04:21 +02:00
Alexandre
a8824bab09
Fix Stream.zip/1 hanging on empty list ( #12461 )
2023-03-10 21:49:30 +01:00
sabiwara
1108a6c3d2
Fix more map inspection tests ( #12433 )
2023-02-28 12:56:27 +01:00
sabiwara
6eca976752
Deterministic struct expansion ( #12418 )
2023-02-19 11:36:34 +01:00
sabiwara
e977f023a0
Remove badfunc test on OTP26 ( #12415 )
2023-02-18 09:34:26 +01:00
sabiwara
dc471cd876
Add :sort_maps to Inspect.Opts.custom_options ( #12404 )
2023-02-16 08:47:21 +01:00
sabiwara
6c31a6c8bb
Fix Enum tests for maps in OTP26 ( #12405 )
2023-02-16 08:37:26 +01:00
José Valim
7535c0c403
Store complete path on quote keep, closes #12393
2023-02-13 12:56:31 +01:00
Zach Allaun
9fd9bceeaa
Code.Normalizer: Use correct meta fields in normalize_call/2 ( #12389 )
2023-02-10 16:14:07 +01:00
José Valim
fb4ccfa656
Properly handle Macro inputs and output types in expansion
...
Closes #12299
Closes #12324
2023-01-14 16:00:45 +01:00
sabiwara
ff2ea69710
Fix Macro.to_string/1 for large negative integers ( #12326 )
2023-01-10 10:50:51 +01:00
José Valim
ec31cc2331
Escape maps when expanding __ENV__
2022-12-12 19:31:13 +01:00
Thanabodee Charoenpiriyakij
950bcc0704
Fix Calendar.strftime/2 format negative year incorrectly ( #12268 )
...
Closes #12266
2022-11-24 09:37:01 +01:00
José Valim
94e0e386ce
Do not crash for missing line info on type warnings
...
Closes #12263 .
2022-11-23 05:35:09 +01:00
José Valim
bfa799b31f
Do not warn on captured underscored vars from defmodule
...
Closes #12262
2022-11-23 05:19:58 +01:00
Marcus Kruse
abe2af477b
Fix wildcard edge case ( #12255 )
2022-11-20 11:06:15 +01:00
José Valim
1f14211a5e
Handle false positive on List.to_charlist/1 formatting, closes #12248
2022-11-17 20:12:59 +01:00
José Valim
1ae36fa079
Keep expression when normalizing is_struct in blame
...
Closes #12243 .
2022-11-15 23:03:53 +01:00
José Valim
123034569f
Generate unique vars in defguard
2022-11-09 13:02:04 +01:00
José Valim
bdea27c1e3
Include [if_undefined: :warn] on var metadata
2022-11-08 13:37:34 +01:00
José Valim
7f70f64a01
Do not include module variables in prune_binding
2022-11-08 11:36:38 +01:00
José Valim
fdf96ad48a
Prune binding from env and on literals
2022-11-03 09:57:33 +01:00
José Valim
804d03431a
Add prune_binding to Code.eval_quoted_with_env/4
2022-10-29 20:43:59 +02:00
José Valim
29a2bb49d0
Add a test for hygienic vars on eval
2022-10-29 20:43:18 +02:00
sabiwara
fcb7b69cb5
Fix formatter: size*unit shortcut in bitstring ( #12201 )
2022-10-14 21:49:48 +02:00
José Valim
32c2a2db62
Expand :for in protocols with the appropriate env
2022-10-11 14:51:27 +02:00
Michał Łępicki
b5941d2f6b
Expand default compile_env argument in expand literals ( #12181 )
2022-10-08 22:21:12 +02:00
José Valim
3d2c3101c3
Add Macro.expand_literals/2 and do partial literal expansion in @
...
Closes #12174 .
2022-10-07 11:44:10 +02:00
sabiwara
278eba5767
Handle unused :uniq comprehensions ( #12116 )
2022-10-05 10:43:17 +02:00
José Valim
7e76039434
More tests for malformed sequences
2022-10-04 16:14:26 +02:00
José Valim
f6f4f817f9
Improve coverage of malformed sequences in String
2022-10-03 12:42:21 +02:00
José Valim
c2426ce98a
Ignore malformed pictographic sequences, closes #12165
2022-10-03 12:42:06 +02:00
sabiwara
e62a2d74ca
Fix algebra edge case on :erlang.binary_to_atom/2 ( #12163 )
2022-10-02 23:32:57 +02:00
José Valim
61b2601488
mix format
2022-09-30 18:54:39 +02:00
José Valim
87dc7929fd
Properly handle list output of :unicode_util.gc/1, closes #12160
2022-09-30 18:48:52 +02:00
Simon Prévost
78d6b88e33
Add complete list of time units on DateTime.add/3 argument error ( #12152 )
2022-09-23 17:26:15 +02:00
José Valim
7f494e6293
Fix signature order in type checkings messages, closes #11744
2022-09-23 13:38:25 +02:00
José Valim
41fa1db031
Do not recursively traverse vars to simplify checker, closes #12149
2022-09-23 13:38:25 +02:00
José Valim
3f2ded08a5
Handle :port :undefined on URI.new
2022-09-15 19:40:12 +02:00
José Valim
d60040636e
Add :close_stdin to System.shell/2
...
It defaults to false as that was the behaviour
in past Elixir versions.
Closes #12135 .
2022-09-15 00:09:56 +02:00
José Valim
d11d619c20
Do not delete enforce_keys on defstruct, closes #12126
2022-09-09 09:24:51 +02:00
José Valim
b78b480587
Raise on missing struct for module conflict, closes #12113
2022-09-04 16:02:58 +02:00
Andrea Leopardi
8f1296964d
Don't raise on overflowing floats in Float.parse/1 ( #12099 )
...
When floats are expressed in scientific notation,
:erlang.binary_to_float/1 can raise an ArgumentError if the e exponent
is too big. For example, "1.0e400". Because of this, we rescue the
ArgumentError and return an error.
2022-08-27 11:46:55 +02:00
José Valim
a3f4d0aecc
Fix module attribute with empty list in Macro.to_string, closes #12097
2022-08-26 08:56:32 +02:00
José Valim
2ab108d1c5
Do not set step to nil in ranges
...
Closes #12076
2022-08-15 10:07:32 +02:00
José Valim
407391d13a
Fix loop while unifying type variables, closes #11658
2022-08-13 11:48:09 +02:00
José Valim
42ecc84e87
Expand pipelines on right-hand side of |>, closes #12070
2022-08-12 17:21:34 +02:00
Wojtek Mach
c63cc10f58
URI.append_query/2: Handle trailing ampersand ( #12069 )
2022-08-12 16:15:51 +02:00
José Valim
777a11de36
Raise specific error for missing env
2022-08-04 19:24:09 +02:00