ra_syntax: migrate test data to 0-length text-range of SyntaxError when constructed from TextUnit

This commit is contained in:
Veetaha 2020-02-17 23:14:31 +02:00
parent cd8e56c580
commit fc5e7b8807
46 changed files with 242 additions and 242 deletions

View file

@ -20,8 +20,8 @@ SOURCE_FILE@[0; 18)
ERROR@[16; 17)
SEMI@[16; 17) ";"
WHITESPACE@[17; 18) "\n"
error [12; 13): expected `;` or `]`
error [12; 13): expected SEMI
error [13; 14): expected an item
error [15; 16): expected an item
error [16; 17): expected an item
error [12; 12): expected `;` or `]`
error [12; 12): expected SEMI
error [13; 13): expected an item
error [15; 15): expected an item
error [16; 16): expected an item

View file

@ -23,7 +23,7 @@ SOURCE_FILE@[0; 30)
WHITESPACE@[27; 28) "\n"
R_CURLY@[28; 29) "}"
WHITESPACE@[29; 30) "\n"
error [22; 23): expected a loop
error [22; 23): expected SEMI
error [27; 28): expected type
error [27; 28): expected `{`
error [22; 22): expected a loop
error [22; 22): expected SEMI
error [27; 27): expected type
error [27; 27): expected `{`

View file

@ -14,4 +14,4 @@ SOURCE_FILE@[0; 14)
R_PAREN@[11; 12) ")"
SEMI@[12; 13) ";"
WHITESPACE@[13; 14) "\n"
error [10; 11): expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate)
error [10; 10): expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate)

View file

@ -73,7 +73,7 @@ SOURCE_FILE@[0; 87)
L_CURLY@[84; 85) "{"
R_CURLY@[85; 86) "}"
WHITESPACE@[86; 87) "\n"
error [38; 39): expected trait or type
error [38; 39): expected `{`
error [70; 71): expected trait or type
error [70; 71): expected `{`
error [38; 38): expected trait or type
error [38; 38): expected `{`
error [70; 70): expected trait or type
error [70; 70): expected `{`

View file

@ -16,8 +16,8 @@ SOURCE_FILE@[0; 20)
ERROR@[18; 19)
SEMI@[18; 19) ";"
WHITESPACE@[19; 20) "\n"
error [15; 16): expected `fn`
error [15; 16): expected SEMI
error [16; 17): expected an item
error [17; 18): expected an item
error [18; 19): expected an item
error [15; 15): expected `fn`
error [15; 15): expected SEMI
error [16; 16): expected an item
error [17; 17): expected an item
error [18; 18): expected an item

View file

@ -33,5 +33,5 @@ SOURCE_FILE@[0; 33)
L_CURLY@[30; 31) "{"
R_CURLY@[31; 32) "}"
WHITESPACE@[32; 33) "\n"
error [11; 12): expected an item
error [18; 19): expected an item
error [11; 11): expected an item
error [18; 18): expected an item

View file

@ -29,4 +29,4 @@ SOURCE_FILE@[0; 30)
WHITESPACE@[27; 28) " "
R_CURLY@[28; 29) "}"
WHITESPACE@[29; 30) "\n"
error [27; 28): expected SEMI
error [27; 27): expected SEMI

View file

@ -23,4 +23,4 @@ SOURCE_FILE@[0; 21)
WHITESPACE@[18; 19) " "
R_CURLY@[19; 20) "}"
WHITESPACE@[20; 21) "\n"
error [14; 15): expected an item
error [14; 14): expected an item

View file

@ -57,5 +57,5 @@ SOURCE_FILE@[0; 48)
WHITESPACE@[45; 46) "\n"
R_CURLY@[46; 47) "}"
WHITESPACE@[47; 48) "\n"
error [24; 25): attributes are not allowed on BIN_EXPR
error [44; 45): attributes are not allowed on IF_EXPR
error [24; 24): attributes are not allowed on BIN_EXPR
error [44; 44): attributes are not allowed on IF_EXPR

View file

@ -37,5 +37,5 @@ SOURCE_FILE@[0; 50)
L_CURLY@[47; 48) "{"
R_CURLY@[48; 49) "}"
WHITESPACE@[49; 50) "\n"
error 6: expected existential, fn, trait or impl
error 31: expected existential, fn, trait or impl
error [6; 6): expected existential, fn, trait or impl
error [31; 31): expected existential, fn, trait or impl

View file

@ -18,4 +18,4 @@ SOURCE_FILE@[0; 19)
INT_NUMBER@[16; 17) "5"
SEMI@[17; 18) ";"
WHITESPACE@[18; 19) "\n"
error [7; 8): expected a name
error [7; 7): expected a name

View file

@ -51,9 +51,9 @@ SOURCE_FILE@[0; 62)
WHITESPACE@[59; 60) "\n"
R_CURLY@[60; 61) "}"
WHITESPACE@[61; 62) "\n"
error [21; 22): expected EXCL
error [21; 22): expected `{`, `[`, `(`
error [21; 22): expected SEMI
error [47; 48): expected EXCL
error [47; 48): expected `{`, `[`, `(`
error [47; 48): expected SEMI
error [21; 21): expected EXCL
error [21; 21): expected `{`, `[`, `(`
error [21; 21): expected SEMI
error [47; 47): expected EXCL
error [47; 47): expected `{`, `[`, `(`
error [47; 47): expected SEMI