-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Error URIs tend to break error messages in half, making them harder to read. Move URIs to the top to avoid that. The only change is in `reporting.rs` Reviewed By: ilya-klyuchnikov Differential Revision: D69245456 fbshipit-source-id: f29a7c28f08d1a81e1a4efa14aa8bd4c3a60c061
- Loading branch information
1 parent
1361dc6
commit 01c58ce
Showing
106 changed files
with
1,224 additions
and
3,665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
crates/elp/src/resources/test/eqwalizer_tests/check/as_pat.pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/as_pat.erl:51:38 | ||
│ | ||
51 │ unboxL_neg(BN = #box_n{}) -> unbox_a(BN). | ||
│ ^^ BN. | ||
Expression has type: #box_n{} | ||
Context expected type: #box_a{} | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/as_pat.erl:61:38 | ||
│ | ||
61 │ unboxR_neg(#box_n{} = BN) -> unbox_b(BN). | ||
│ ^^ BN. | ||
Expression has type: #box_n{} | ||
Context expected type: #box_b{} | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
2 ERRORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
crates/elp/src/resources/test/eqwalizer_tests/check/behave.pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
error: unknown_id | ||
error: unknown_id (See https://fb.me/eqwalizer_errors#unknown_id) | ||
┌─ check/src/behave.erl:8:20 | ||
│ | ||
8 │ -callback foo() -> behave1:test(). | ||
│ ^^^^^^^^^^^^^^ Unknown id: behave1:test/0 | ||
|
||
See https://fb.me/eqwalizer_errors#unknown_id | ||
|
||
error: unbound_type_var | ||
error: unbound_type_var (See https://fb.me/eqwalizer_errors#unbound_type_var) | ||
┌─ check/src/behave.erl:10:1 | ||
│ | ||
10 │ -type invalid() :: _T. | ||
│ ^^^^^^^^^^^^^^^^^^^^^ _T: Type variable is unbound. | ||
|
||
See https://fb.me/eqwalizer_errors#unbound_type_var | ||
|
||
2 ERRORS |
32 changes: 8 additions & 24 deletions
32
crates/elp/src/resources/test/eqwalizer_tests/check/binaries.pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,65 @@ | ||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:24:17 | ||
│ | ||
24 │ test04_neg() -> <<>>. | ||
│ ^^^^ <<..>>. | ||
Expression has type: binary() | ||
Context expected type: [term()] | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:32:20 | ||
│ | ||
32 │ test05_neg(A) -> <<A/signed>>. | ||
│ ^ A. | ||
Expression has type: atom() | ||
Context expected type: number() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:35:23 | ||
│ | ||
35 │ test06_neg(A, S) -> <<A:S>>. | ||
│ ^ A. | ||
Expression has type: atom() | ||
Context expected type: number() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:38:18 | ||
│ | ||
38 │ test07_neg(A) -> [A]. | ||
│ ^^^ [A]. | ||
Expression has type: [atom()] | ||
Context expected type: binary() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:55:7 | ||
│ | ||
55 │ <<"binary"/binary>>. | ||
│ ^^^^^^^^ string_lit. | ||
Expression has type: string() | ||
Context expected type: binary() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:74:9 | ||
│ | ||
74 │ <<X:A>> = Bits, | ||
│ ^ A. | ||
Expression has type: atom() | ||
Context expected type: number() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:80:9 | ||
│ | ||
80 │ <<X:(self())>> = Bits, | ||
│ ^^^^^^^^ erlang:self(). | ||
Expression has type: pid() | ||
Context expected type: number() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
error: incompatible_types | ||
error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types) | ||
┌─ check/src/binaries.erl:89:7 | ||
│ | ||
89 │ <<[]>>. | ||
│ ^^ []. | ||
Expression has type: [] | ||
Context expected type: number() | ||
|
||
See https://fb.me/eqwalizer_errors#incompatible_types | ||
|
||
8 ERRORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
crates/elp/src/resources/test/eqwalizer_tests/check/callbacks3_neg.pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.