aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/tests.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-02 20:20:24 +0100
committerGitHub <[email protected]>2019-09-02 20:20:24 +0100
commit7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch)
tree6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_mbe/src/tests.rs
parenta8397deab914240aca8f015fb3736689919c0a5b (diff)
parente94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff)
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad This way, things like function bodies are expressions, and we don't have to single them out Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_mbe/src/tests.rs')
-rw-r--r--crates/ra_mbe/src/tests.rs31
1 files changed, 16 insertions, 15 deletions
diff --git a/crates/ra_mbe/src/tests.rs b/crates/ra_mbe/src/tests.rs
index 1dbf22997..034ea639b 100644
--- a/crates/ra_mbe/src/tests.rs
+++ b/crates/ra_mbe/src/tests.rs
@@ -678,21 +678,22 @@ fn test_expr_order() {
678 PARAM_LIST@[5; 7) 678 PARAM_LIST@[5; 7)
679 L_PAREN@[5; 6) "(" 679 L_PAREN@[5; 6) "("
680 R_PAREN@[6; 7) ")" 680 R_PAREN@[6; 7) ")"
681 BLOCK@[7; 15) 681 BLOCK_EXPR@[7; 15)
682 L_CURLY@[7; 8) "{" 682 BLOCK@[7; 15)
683 EXPR_STMT@[8; 14) 683 L_CURLY@[7; 8) "{"
684 BIN_EXPR@[8; 13) 684 EXPR_STMT@[8; 14)
685 BIN_EXPR@[8; 11) 685 BIN_EXPR@[8; 13)
686 LITERAL@[8; 9) 686 BIN_EXPR@[8; 11)
687 INT_NUMBER@[8; 9) "1" 687 LITERAL@[8; 9)
688 PLUS@[9; 10) "+" 688 INT_NUMBER@[8; 9) "1"
689 LITERAL@[10; 11) 689 PLUS@[9; 10) "+"
690 INT_NUMBER@[10; 11) "1" 690 LITERAL@[10; 11)
691 STAR@[11; 12) "*" 691 INT_NUMBER@[10; 11) "1"
692 LITERAL@[12; 13) 692 STAR@[11; 12) "*"
693 INT_NUMBER@[12; 13) "2" 693 LITERAL@[12; 13)
694 SEMI@[13; 14) ";" 694 INT_NUMBER@[12; 13) "2"
695 R_CURLY@[14; 15) "}""#, 695 SEMI@[13; 14) ";"
696 R_CURLY@[14; 15) "}""#,
696 ); 697 );
697} 698}
698 699