Commit Graph
11638 Commits
Author SHA1 Message Date
José Valim e9e4e24ef7 Track __info__(:struct) more precisely
Closes #14127.
2024-12-29 19:55:46 +01:00
José Valim f300c7ee96 Annotate the root level type that does not match a given expression 2024-12-29 19:55:46 +01:00
Harrison Chienjo 8302dbf519 Fix typos (#14128) 2024-12-29 19:42:09 +01:00
José Valim d9c536ce39 Do not expect protocols to have :signatures, closes #14126 2024-12-29 13:04:38 +01:00
Łukasz Samson 8e4d2cd6d7 Document assoc metadata entry (#14125) 2024-12-29 12:05:16 +01:00
José Valim d3cef1f32c Type checking of protocols in for-comprehensions (#14124) 2024-12-29 11:49:04 +01:00
José Valim 478711666e Pass args as explicit argument to Apply.remote 2024-12-28 11:49:36 +01:00
José Valim 4f0b0d9615 Use ensure_compiled for verifying protocol implementations 2024-12-28 09:38:16 +01:00
José Valim 6c7f6e7e79 Add a test to ensure no compile time deps on defimpl 2024-12-28 09:32:55 +01:00
José Valim c1c2cf8a65 Type checking of protocol dispatch (#14117) 2024-12-27 19:40:26 +01:00
Michał Łępicki c34627ca3b Fix type specs in the File module (#14123)
They were introduced in #14121.
2024-12-27 17:10:03 +01:00
José Valim 292f8761a2 Update AST metadata documentation (#14120) 2024-12-27 11:37:25 +01:00
Jonatan Kłosko 3ee2ecabff Remove duplicated metadata in nested call AST (#14122) 2024-12-27 11:36:52 +01:00
Gal Tsubery 71b85292c4 Update specs to match OTP definitions (#14121) 2024-12-27 09:39:21 +01:00
José Valim 256793830b Bring conditional violation reports back 2024-12-26 19:37:22 +01:00
José Valim baa7b5ed75 Revert "Remove unnecessary case annotations"
This reverts commit ecb4613c04.
2024-12-26 19:35:11 +01:00
José Valim 30764fe67d Add type checking of protocol implementations (#14115) 2024-12-26 09:00:45 +01:00
José Valim ecb4613c04 Remove unnecessary case annotations 2024-12-25 19:23:11 +01:00
Benjamin Zubača ea02b0c846 Fix indentation in JSON.Encoder module doc (#14114) 2024-12-25 13:35:03 +01:00
José Valim 591e97a49f Merge compile.protocols into compile.elixir (#14109) 2024-12-24 10:05:07 +01:00
José Valim 1cd67c961c Do not warn when comparing literals 2024-12-24 09:57:34 +01:00
José Valim f9f61bbb20 Do not recompile if compilation fails due to --warnings-as-errors 2024-12-23 18:25:42 +01:00
José Valim 4285cea166 Improve container_cursor_to_quoted with trailing fragment, closes #14087 2024-12-23 12:23:58 +01:00
José Valim 462f614e79 Avoid crash when typing violation is detected on dynamic dispatch 2024-12-22 17:56:03 +01:00
José Valim 4b262d8835 More coverage around source on parallel compiler 2024-12-22 16:04:58 +01:00
José Valim 182e4b5304 Track source for warnings, closes #14093 2024-12-22 11:03:45 +01:00
José Valim fe089dea56 Do not validate clauses of overridable functions, closes #14094 2024-12-22 09:55:05 +01:00
Jean Klingler 5882a52e73 Deprecate complex module expressions in &mod.fun/arity captures (#14095) 2024-12-22 16:22:42 +09:00
José Valim 52e3aa73b8 Verify no warnings are emitted on generated clauses, see #14094 2024-12-21 21:29:04 +01:00
Jean Klingler 1b1e5c93b9 Improve doc navigability for child spec options (#14097) 2024-12-21 19:54:10 +09:00
Jean Klingler 853e9ca7b9 Remove no_parens when using capture with arity (#14090) 2024-12-20 22:27:11 +09:00
José Valim 8a89663dfb Keep traces backwards compatible 2024-12-20 10:43:14 +01:00
José Valim 27a825aaf3 Annotate nifs to accumulate 2024-12-20 10:03:44 +01:00
Sebastia Ramon 68a17aea7e Fix typo in alias-require-and-import.md (#14086) 2024-12-20 09:56:09 +01:00
José Valim 6ff6fe45e6 Clarify unit padding/truncation in to_unix, closes #14081 2024-12-19 19:05:59 +01:00
Zach Daniel 74898fb990 Advise library authors on how best to depend on child dependencies (#14080) 2024-12-19 18:57:45 +01:00
José Valim 4689205d60 Improve warning as errors deprecation notice 2024-12-19 17:25:14 +01:00
José Valim 86d375178f Respect struct field order when printing types 2024-12-19 15:38:54 +01:00
José Valim 49e32095c0 Collapse structs for better pretty printing in different scenarios 2024-12-19 15:12:31 +01:00
José Valim ba5717adc6 Include types in comparison warning 2024-12-19 12:13:17 +01:00
José Valim 5532656ed5 Simplify and optimize NaiveDateTime.utc_now 2024-12-19 12:12:49 +01:00
José Valim 73fed09f66 Improvements to descr pretty printing 2024-12-18 09:31:32 +01:00
Guillaume Duboc bcc36c585b Fuse maps and tuples for printing (#14079) 2024-12-18 08:34:17 +01:00
loving marshmallow a539395708 Correct typo in Process doc 2024-12-17 14:56:57 +09:00
José Valim 6443322382 Emit warnings for duplicate patterns instead of errors 2024-12-16 19:30:42 +01:00
José Valim 0513a038fe Shuffle fields order in JSON test 2024-12-16 17:26:14 +01:00
José Valim c52ee25526 Tag exceptions as dynamic, closes #14074 2024-12-16 16:12:55 +01:00
José Valim 87bba10b00 Add support for :group doc metadata and use it in IEx.Autocomplete 2024-12-16 13:52:46 +01:00
José Valim 7fdfe779b2 Also encode Duration to JSON 2024-12-16 12:23:40 +01:00
José Valim a506ebc257 Avoid crashes on diagnostics with tabs, closes #14073 2024-12-16 12:09:02 +01:00