diff options
author | Jade <[email protected]> | 2021-05-12 13:44:01 +0100 |
---|---|---|
committer | Jade <[email protected]> | 2021-05-13 05:22:46 +0100 |
commit | 73023c0299d4adeada026648c3684621f129e038 (patch) | |
tree | 302ca449ae51a546d808d93037134af9c470d6b5 /crates/hir_ty/src/tests | |
parent | 8b147624ff906a11134d2e18be071c6cb8ec4beb (diff) |
Support length for ByteStrings
I am not confident that my added byte string parsing is right.
Diffstat (limited to 'crates/hir_ty/src/tests')
-rw-r--r-- | crates/hir_ty/src/tests/simple.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index 19775a4ec..79445a12d 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs | |||
@@ -496,7 +496,7 @@ fn infer_literals() { | |||
496 | 26..30 '5f32': f32 | 496 | 26..30 '5f32': f32 |
497 | 36..40 '5f64': f64 | 497 | 36..40 '5f64': f64 |
498 | 46..53 '"hello"': &str | 498 | 46..53 '"hello"': &str |
499 | 59..67 'b"bytes"': &[u8; _] | 499 | 59..67 'b"bytes"': &[u8; 5] |
500 | 73..76 ''c'': char | 500 | 73..76 ''c'': char |
501 | 82..86 'b'b'': u8 | 501 | 82..86 'b'b'': u8 |
502 | 92..96 '3.14': f64 | 502 | 92..96 '3.14': f64 |
@@ -504,7 +504,7 @@ fn infer_literals() { | |||
504 | 112..117 'false': bool | 504 | 112..117 'false': bool |
505 | 123..127 'true': bool | 505 | 123..127 'true': bool |
506 | 133..197 'r#" ... "#': &str | 506 | 133..197 'r#" ... "#': &str |
507 | 203..213 'br#"yolo"#': &[u8; _] | 507 | 203..213 'br#"yolo"#': &[u8; 4] |
508 | "##]], | 508 | "##]], |
509 | ); | 509 | ); |
510 | } | 510 | } |