José Valim
74d61e0c8d
Update macro.ex
2021-12-05 14:30:04 +01:00
Eksperimental
6f98831d88
Fix spec for Code.Identifier.escape/4 ( #11445 )
...
Closes #11444
2021-12-05 10:51:52 +01:00
José Valim
4dd1301d03
Warn on ::: to avoid ambiguity
...
The formatter already rewrote it to :"::" since
its conception.
2021-12-05 10:40:19 +01:00
Eksperimental
5bcd0bbce9
Colorize Version.Requirement source in Inspect protocol ( #11441 )
...
This is to avoid ambiguity in cases like
iex> Version.parse_requirement!("~> 1.2.3 or < 3.4.5 and > 5.6.7")
#Version.Requirement<~> 1.2.3 or < 3.4.5 and > 5.6.7>
2021-12-04 22:10:49 +01:00
Wojtek Mach
4204a0a1d1
Add missing @doc since ( #11443 )
2021-12-04 19:57:22 +01:00
Eksperimental
9e0e0fca56
Add guards and specs to Identifier.escape/4 ( #11439 )
2021-12-04 15:35:05 +01:00
Kian Meng Ang
4995e06713
Update code example for unquote/1 ( #11437 )
...
The output have changed since 1.13.0-rc.0.
2021-12-03 20:23:22 +01:00
José Valim
69fc6024aa
Clarify docs for use/2
2021-12-03 19:48:51 +01:00
Benjamin Milde
0db4f426c7
Update microsecond typespec ( #11436 )
...
Show which part of the tuple is the value and which the precision
2021-12-03 18:34:54 +01:00
José Valim
6eb00ca7d2
Still document nil as part of the URI path, closes #11424
2021-12-02 23:23:54 +01:00
José Valim
c2578c9370
Add Map.from_keys/2 and Keyword.from_keys/2 ( #11432 )
...
The map operation is optimized since Erlang/OTP 24+
as we don't need to do an additional traversal to
create tuples.
2021-12-02 21:51:22 +01:00
Dorgan
2dede8ea2b
Fix normalization of kw list in blocks ( #11431 )
2021-12-02 08:21:59 +01:00
Michał Łępicki
0ff6522ab4
Fix opaque Version.Requirement usage ( #11428 )
...
Do not pattern match on internal opaque type structure
outside of the module with that opaque type definition.
Fixes related dialyzer issues.
2021-12-01 09:56:54 +01:00
felipe stival
31dd59dbd1
Add note in Float.to_{string/charlist}/1 ( #11359 )
2021-11-30 14:15:54 +01:00
Eksperimental
a1e794fce5
Improve Version.compile_requirement/1 ( #11427 )
2021-11-30 11:25:19 +01:00
José Valim
b131f87464
Warn if an outdated lexical tracker is given on eval
2021-11-26 23:00:18 +01:00
Moshe Paul
def1b2bd1a
Clarify documentation for Stream.transform/3 ( #11419 )
2021-11-26 21:02:51 +01:00
José Valim
3b93c6f969
Move syntax errors to parser file
2021-11-26 21:02:07 +01:00
José Valim
adab68df21
Do not print control chars as unexpected tokens
2021-11-26 21:02:07 +01:00
Eric Meadows-Jönsson
0fd981a498
Add Version.to_string/1 ( #11422 )
2021-11-26 15:38:52 +01:00
José Valim
209688fc52
Handle outdated anonymous functions in Erlang/OTP 25 ( #11421 )
2021-11-26 06:47:10 +01:00
José Valim
cc877ee16b
Disable ssa and bool passes ( #11420 )
...
Module bodies, especially in tests, tend to be
long, which affects the performance of passes
such as beam_ssa_opt and beam_bool. This commit
disables those passes during module definition.
As an example, this makes loading Elixir's test
suite 7-8% faster.
2021-11-26 06:46:50 +01:00
José Valim
f5208a39a3
Emit checker warnings on compile_string/compile_quoted, closes #11417
2021-11-25 21:14:14 +01:00
José Valim
4a88be86f8
Preserve opts while formatting failed inspect struct
...
Also make formatting consistent.
2021-11-25 18:11:05 +01:00
Eksperimental
6fa5018f9e
Improve user experience when there is a faulty Inspect implementation ( #11403 )
2021-11-25 17:41:03 +01:00
José Valim
5851879430
Update CHANGELOG
2021-11-23 14:31:19 +01:00
Eksperimental
6289cd6b96
Fix links to EEP 48 ( #11411 )
2021-11-22 13:02:23 +01:00
José Valim
d0e4af9353
Skip errors on head of generated clauses, closes #11407
2021-11-21 19:33:14 +01:00
José Valim
043f1c49ec
erlang.org -> www.erlang.org
2021-11-21 16:28:21 +01:00
Rudolf
d6b0fcacb0
Add Registry.count_select/2 ( #11405 )
2021-11-20 14:35:02 +01:00
José Valim
bb386c9f51
Fix typespec for Macro.struct!/2
2021-11-19 23:15:16 +01:00
José Valim
7dbcf9aba9
Update links and include zoneinfo in docs
2021-11-19 18:51:12 +01:00
José Valim
3b52a04354
Warn on trailing commas on calls, closes #11399
2021-11-19 11:46:46 +01:00
Eksperimental
916cf08069
Make all Inspect tests asyncronous ( #11402 )
2021-11-18 23:09:49 +01:00
Eksperimental
85a04512b8
Document default value for :safe in Inspect.Opts ( #11401 )
2021-11-18 23:07:05 +01:00
Dorgan
2270c95ab3
Fix normalizer not preserving user choice on module attribute lists ( #11397 )
2021-11-17 15:05:37 +01:00
Rudolf
4e12695f8e
Add clarifications to Task.Supervisor.children/1 ( #11395 )
...
Children ignored children that are restarting.
Add a caution note about calling the function under low memory condition.
2021-11-16 21:02:58 +01:00
José Valim
72bd8e1c2b
Revert "Clarify risk of duplicate keys in Map.map/2 ( #11360 )"
...
This reverts commit 6074846794 .
2021-11-15 21:10:34 +01:00
José Valim
39121adb57
Reject bidirectional formatting characters ( #11391 )
2021-11-15 21:08:37 +01:00
José Valim
a618213616
Support escaping of terminators in uppercase sigils heredocs for consistency, closes #11390
2021-11-15 14:21:12 +01:00
José Valim
58455c1872
Do not raise on variable looking like an empty tuple
2021-11-13 12:37:01 +01:00
Tyler A. Young
d4a2dfc336
Corrections & clarifications to Task.Supervisor docs ( #11384 )
2021-11-12 09:17:49 +01:00
Eksperimental
3947ab7117
Allow Application.compile_env* to accept attributes ( #11383 )
2021-11-11 22:04:20 +01:00
José Valim
ab928366b1
Fix bootstrap
2021-11-10 19:37:21 +01:00
José Valim
34368b2680
Do not crash on duplicate bindings, closes #11378
2021-11-10 19:27:53 +01:00
José Valim
011e25fe8c
Consistently return an empty list for System.stacktrace
2021-11-09 21:57:22 +01:00
José Valim
f5d55062ca
Update CHANGELOG
2021-11-09 18:34:01 +01:00
José Valim
f0b81e8208
Deprecate features pending for v1.14
2021-11-09 18:34:01 +01:00
José Valim
e0c60c68a0
Do not extract comments without a newline
2021-11-08 18:01:25 +01:00
José Valim
64c2248aa4
Use keyword syntax by default in tuple formatting
2021-11-08 17:25:25 +01:00