diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-17 17:22:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-17 17:22:32 +0100 |
commit | ce926aebc4461e38535047958c0b6f72b7a0c0ea (patch) | |
tree | 4b844e0681b459836bac22c34bee43e4dfa3dc5f /crates/syntax/test_data/lexer | |
parent | 3ae0c5911ab50ee209179ee4329b0551abe6fc48 (diff) | |
parent | 02d25ab60d2701ce71fe2dfaca36627ad902e229 (diff) |
Merge #9315
9315: Nest all the or-patterns! r=Veykril a=Veykril
`cargo +nightly clippy --fix -Z unstable-options --allow-dirty -- -A clippy::all -D clippy::unnested_or_patterns`
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/syntax/test_data/lexer')
20 files changed, 55 insertions, 55 deletions
diff --git a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt b/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt index 4d5ad74df..135f49552 100644 --- a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt +++ b/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 1 "\'" | 1 | CHAR 1 "'" |
2 | > error0..1 token("\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..1 token("'") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt b/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt index eafdb3c7c..cc3933d95 100644 --- a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt +++ b/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 5 "\'🦀" | 1 | CHAR 5 "'🦀" |
2 | > error0..5 token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..5 token("'🦀") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt index cc2b4866a..21d990e6f 100644 --- a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt +++ b/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 5 "\'\\x7f" | 1 | CHAR 5 "'\\x7f" |
2 | > error0..5 token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..5 token("'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt index a6d422cb3..055dba64c 100644 --- a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt +++ b/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 9 "\'\\u{20AA}" | 1 | CHAR 9 "'\\u{20AA}" |
2 | > error0..9 token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..9 token("'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt b/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt index 47e7baa70..9ee5e93fa 100644 --- a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt +++ b/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 2 "\' " | 1 | CHAR 2 "' " |
2 | > error0..2 token("\' ") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..2 token("' ") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt b/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt index 511029d80..dc3a596f6 100644 --- a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt +++ b/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 2 "\'\\" | 1 | CHAR 2 "'\\" |
2 | > error0..2 token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..2 token("'\\") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt index d2ba5742c..e46edea98 100644 --- a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt +++ b/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 3 "\'\\n" | 1 | CHAR 3 "'\\n" |
2 | > error0..3 token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..3 token("'\\n") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt index ae9a7f0e2..8ad1e913a 100644 --- a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt +++ b/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | CHAR 3 "\'\\\'" | 1 | CHAR 3 "'\\'" |
2 | > error0..3 token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > error0..3 token("'\\'") msg(Missing trailing `'` symbol to terminate the character literal) |
diff --git a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt b/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt index ff1504592..9d30c7466 100644 --- a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt +++ b/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 2 "b\'" | 1 | BYTE 2 "b'" |
2 | > error0..2 token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..2 token("b'") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt b/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt index 34f7bd6d4..9dbf4203e 100644 --- a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt +++ b/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 6 "b\'🦀" | 1 | BYTE 6 "b'🦀" |
2 | > error0..6 token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..6 token("b'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt index c964d0f00..d5d9c2ef7 100644 --- a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt +++ b/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 6 "b\'\\x7f" | 1 | BYTE 6 "b'\\x7f" |
2 | > error0..6 token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..6 token("b'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt index cc65fb86f..a99b9666a 100644 --- a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt +++ b/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 10 "b\'\\u{20AA}" | 1 | BYTE 10 "b'\\u{20AA}" |
2 | > error0..10 token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..10 token("b'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt b/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt index 800834a14..8a344f712 100644 --- a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt +++ b/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 3 "b\' " | 1 | BYTE 3 "b' " |
2 | > error0..3 token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..3 token("b' ") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt b/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt index 7b85ee646..b78a43c02 100644 --- a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt +++ b/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 3 "b\'\\" | 1 | BYTE 3 "b'\\" |
2 | > error0..3 token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..3 token("b'\\") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt index 4b9a63117..5147363ba 100644 --- a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt +++ b/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 4 "b\'\\n" | 1 | BYTE 4 "b'\\n" |
2 | > error0..4 token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..4 token("b'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt index fe337f8d3..261c0894f 100644 --- a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt +++ b/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | BYTE 4 "b\'\\\'" | 1 | BYTE 4 "b'\\'" |
2 | > error0..4 token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > error0..4 token("b'\\'") msg(Missing trailing `'` symbol to terminate the byte literal) |
diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt index 11e0ae14a..b746404d2 100644 --- a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt +++ b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | LIFETIME_IDENT 2 "\'1" | 1 | LIFETIME_IDENT 2 "'1" |
2 | WHITESPACE 1 "\n" | 2 | WHITESPACE 1 "\n" |
3 | LIFETIME_IDENT 10 "\'1lifetime" | 3 | LIFETIME_IDENT 10 "'1lifetime" |
4 | WHITESPACE 1 "\n" | 4 | WHITESPACE 1 "\n" |
5 | > error0..2 token("\'1") msg(Lifetime name cannot start with a number) | 5 | > error0..2 token("'1") msg(Lifetime name cannot start with a number) |
6 | > error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) | 6 | > error3..13 token("'1lifetime") msg(Lifetime name cannot start with a number) |
diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.txt b/crates/syntax/test_data/lexer/ok/0006_chars.txt index 950954fbc..756477dc9 100644 --- a/crates/syntax/test_data/lexer/ok/0006_chars.txt +++ b/crates/syntax/test_data/lexer/ok/0006_chars.txt | |||
@@ -1,16 +1,16 @@ | |||
1 | CHAR 3 "\'x\'" | 1 | CHAR 3 "'x'" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | CHAR 3 "\' \'" | 3 | CHAR 3 "' '" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | CHAR 3 "\'0\'" | 5 | CHAR 3 "'0'" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | CHAR 7 "\'hello\'" | 7 | CHAR 7 "'hello'" |
8 | WHITESPACE 1 " " | 8 | WHITESPACE 1 " " |
9 | CHAR 6 "\'\\x7f\'" | 9 | CHAR 6 "'\\x7f'" |
10 | WHITESPACE 1 " " | 10 | WHITESPACE 1 " " |
11 | CHAR 4 "\'\\n\'" | 11 | CHAR 4 "'\\n'" |
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | CHAR 4 "\'\\\\\'" | 13 | CHAR 4 "'\\\\'" |
14 | WHITESPACE 1 " " | 14 | WHITESPACE 1 " " |
15 | CHAR 4 "\'\\\'\'" | 15 | CHAR 4 "'\\''" |
16 | WHITESPACE 1 "\n" | 16 | WHITESPACE 1 "\n" |
diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt index 4d6625c3a..32ed9ed50 100644 --- a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt +++ b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt | |||
@@ -1,8 +1,8 @@ | |||
1 | LIFETIME_IDENT 2 "\'a" | 1 | LIFETIME_IDENT 2 "'a" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | LIFETIME_IDENT 4 "\'foo" | 3 | LIFETIME_IDENT 4 "'foo" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | LIFETIME_IDENT 12 "\'foo_bar_baz" | 5 | LIFETIME_IDENT 12 "'foo_bar_baz" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | LIFETIME_IDENT 2 "\'_" | 7 | LIFETIME_IDENT 2 "'_" |
8 | WHITESPACE 1 "\n" | 8 | WHITESPACE 1 "\n" |
diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt index e61ad99be..06d6bdd1f 100644 --- a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt +++ b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt | |||
@@ -1,22 +1,22 @@ | |||
1 | BYTE 3 "b\'\'" | 1 | BYTE 3 "b''" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | BYTE 4 "b\'x\'" | 3 | BYTE 4 "b'x'" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | BYTE_STRING 6 "b\"foo\"" | 5 | BYTE_STRING 6 "b\"foo\"" |
6 | WHITESPACE 1 " " | 6 | WHITESPACE 1 " " |
7 | BYTE_STRING 4 "br\"\"" | 7 | BYTE_STRING 4 "br\"\"" |
8 | WHITESPACE 1 "\n" | 8 | WHITESPACE 1 "\n" |
9 | BYTE 6 "b\'\'suf" | 9 | BYTE 6 "b''suf" |
10 | WHITESPACE 1 " " | 10 | WHITESPACE 1 " " |
11 | BYTE_STRING 5 "b\"\"ix" | 11 | BYTE_STRING 5 "b\"\"ix" |
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | BYTE_STRING 6 "br\"\"br" | 13 | BYTE_STRING 6 "br\"\"br" |
14 | WHITESPACE 1 "\n" | 14 | WHITESPACE 1 "\n" |
15 | BYTE 5 "b\'\\n\'" | 15 | BYTE 5 "b'\\n'" |
16 | WHITESPACE 1 " " | 16 | WHITESPACE 1 " " |
17 | BYTE 5 "b\'\\\\\'" | 17 | BYTE 5 "b'\\\\'" |
18 | WHITESPACE 1 " " | 18 | WHITESPACE 1 " " |
19 | BYTE 5 "b\'\\\'\'" | 19 | BYTE 5 "b'\\''" |
20 | WHITESPACE 1 " " | 20 | WHITESPACE 1 " " |
21 | BYTE 8 "b\'hello\'" | 21 | BYTE 8 "b'hello'" |
22 | WHITESPACE 1 "\n" | 22 | WHITESPACE 1 "\n" |