Commit Graph
8624 Commits
Author SHA1 Message Date
José Valim 5918b24d72 Allow file, line and context to be dynamically set on quote, closes #9721 2020-01-23 20:26:16 +01:00
Eric Meadows-Jönsson 1d7af251ad Only error for duplicate map keys in matches (#9748)
In matches we will error:

    %{a: :b, a: :c} = %{a: :b}

In normal expressions we will only warn:

    %{a: :b, a: :c}
2020-01-21 18:15:35 +01:00
Everett Griffiths 391f8c9e8b Adds links and examples to docs around logging (#9743) 2020-01-21 17:43:07 +01:00
José Valim b2de6d8cd8 Clear up all monitors on async_many failures 2020-01-19 13:21:23 +01:00
Ian Young 86df142ed0 Add Task.await_many/2 (#9741) 2020-01-19 13:14:03 +01:00
José Valim ef61614f60 Keep existing APIs for min/max/min_by/max_by 2020-01-17 12:54:31 +01:00
Everett Griffiths 2cb4b77f40 Improve example and add "implicit try" phrase (#9740) 2020-01-15 22:12:59 +01:00
Fernando Tapia Rico 58a551f338 Update Library Guidelines.md (#9739) 2020-01-15 19:00:34 +01:00
José Valim a4450fa8b2 Add a new anti-pattern section to library guidelines 2020-01-15 17:56:03 +01:00
Wojtek Mach 7287ae758a Fix bug: move :indentation from sigil meta to binary meta (#9738)
We need it there so we can retrieve it like this:

    defmacro sigil_E({:<<>>, meta, [expr]}, []) do
      options = [
        line: __CALLER__.line + 1,
        indentation: meta[:indentation] || 0
      ]

      EEx.compile_string(expr, options)
    end
2020-01-15 16:11:38 +01:00
Wojtek Mach 331df3587b Add :indentation to sigil heredoc meta (#9725) 2020-01-14 20:45:24 +01:00
Eric Meadows-Jönsson d8d8eafc52 Keep line number in cond_clause error (#9730) 2020-01-14 17:53:25 +01:00
Po Chen 09ad598a12 Fix since for is_struct/2 (#9726) 2020-01-13 23:33:03 +01:00
Wojtek Mach c5f735c989 Add since to new :column option on string_to_quoted (#9723) 2020-01-13 18:36:59 +01:00
Łukasz Jan Niemier a189bb24f1 Add is_struct/2 macro (#9718) 2020-01-13 09:37:53 +01:00
José Valim 216bf94577 Do not expand interpolation twice, closes #9709 2020-01-12 17:19:50 +01:00
José Valim b75f5899e1 Remove guard checks on is_odd/is_even as those are tested in defguard, closes #9700 2020-01-12 15:59:59 +01:00
Wojtek Mach 8364149953 Add :column to Code.string_to_quoted*/2 2020-01-12 15:41:36 +01:00
Pete Matsyburka 45fd2a6fac Add :. to special forms (#9717) 2020-01-12 15:37:09 +01:00
Eric Meadows-Jönsson b78d68db32 Fix formatting 2020-01-12 13:24:58 +01:00
Eric Meadows-Jönsson e8c49a446a Do not warn for functions generated by Erlang compiler (#9713) 2020-01-12 12:15:21 +01:00
Eric Meadows-Jönsson c7f0295d6d Support map.field syntax in guards (#9711) 2020-01-11 16:31:56 +01:00
José Valim 6fd3f52f05 Use meta on rewrites, closes #9714 2020-01-11 12:17:08 +01:00
Eric Meadows-Jönsson 9a627b2f5e Fix no_parens test 2020-01-11 02:24:04 +01:00
José Valim 9a1d52cb4f Add more no_parens check to quoted 2020-01-10 09:24:09 +01:00
José Valim 7a159a049c Keep no_parens distinction in quote/unquote 2020-01-10 09:03:07 +01:00
Eric Meadows-Jönsson b6f4f4f2f3 Allow any type on the RHS of or/2 (#9706)
Closes #9704.
2020-01-09 17:07:18 +01:00
Eric Meadows-Jönsson c4db8841ab Improve type check error message (#9705)
A type error may not always cause a clause to fail.

Related to #9700.
2020-01-09 15:17:19 +01:00
José Valim d002f2fd10 Deprecate remaining supervisor API 2020-01-07 18:17:34 +01:00
José Valim 76b804f725 Start v1.11 2020-01-07 15:06:25 +01:00
Dmitry Kakurin 033c7387e2 Fix Path.absname/1 to correctly handle UNC paths on Windows (#9689) 2020-01-06 22:50:47 +01:00
Eric Meadows-Jönsson a72a388e1c Remove type inversion (#9695) 2020-01-06 20:05:17 +01:00
Wojtek Mach 440850f5a0 Point to the proper docs in the consolidation warning (#9696)
The docs are on the module nowadays: https://hexdocs.pm/elixir/master/Protocol.html#module-consolidation
2020-01-06 17:17:23 +01:00
Pete Matsyburka 54328e810f Optimize Enum.join/2 with empty string (#9697) 2020-01-06 17:15:13 +01:00
Wojtek Mach a256c5578e Add option :all to :no_warn_undefined (#9691) 2020-01-06 00:01:52 +01:00
Devon Estes ec65f8d48a Always capture delimiter metadata for sigils (#9671)
This makes it so we're always capturing delimiter metadata for sigils
instead of requiring the `token_metadata` option. This means that we can
now show the correct sigils in ExUnit diffs (and elsewhere) for code
examples.
2020-01-05 16:07:58 +01:00
Sascha Wolf f0fbf0241a IO.ANSI.Docs - Properly render quote blocks (#9684) 2020-01-05 15:54:24 +01:00
José Valim 51115133c4 Clarify usage of version and requires it in releases, closes #9686 2020-01-05 09:45:57 +01:00
José Valim 6760cdbf14 Run the formatter 2020-01-04 12:52:45 +01:00
José Valim b64d7488d0 Prepare for v1.10-rc (#9673) 2020-01-03 17:29:38 +01:00
José Valim 5dd271d361 Fix bounded funs in macrocallbacks, closes #9687 2020-01-03 17:18:27 +01:00
José Valim 3b16807374 Reduce the amount of data sent between compilation processes 2020-01-03 17:18:27 +01:00
Xavier Noria 2a3a38ef78 Fixes typo in Config docs [skip ci] (#9682) 2020-01-02 18:25:56 +01:00
Wojtek Mach 0c7d09c570 Document :file option on quote/2 (#9679) 2020-01-01 17:26:27 +01:00
José Valim 7f86ea3334 Allow reboot to be disabled in releases, closes #9552 2019-12-30 14:06:05 +01:00
José Valim 203d540c3a Fixes for new Macro.to_string behaviour 2019-12-24 11:57:02 +01:00
José Valim d2c9824ef9 Respect :no_parens meta in nullary remote calls in Macro.to_string
Closes #9668.
2019-12-24 11:41:02 +01:00
M. Peter 04c9c244f1 Update enum.ex docs for find_value (#9641) 2019-12-24 11:19:25 +01:00
José Valim 00abb3b6e3 Allow positive range slices on infinite streams
Closes #9653.
Closes #9654.
2019-12-24 11:17:23 +01:00
José Valim cf5e7d9f78 Clarify which keys are kept, closes #9657 2019-12-23 20:23:49 +01:00