diff options
Diffstat (limited to 'crates/libsyntax2/src')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/mod.rs | 1 | ||||
-rw-r--r-- | crates/libsyntax2/src/lib.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index e672aa419..5466146b4 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs | |||
@@ -227,6 +227,7 @@ fn extern_item_list(p: &mut Parser) { | |||
227 | assert!(p.at(L_CURLY)); | 227 | assert!(p.at(L_CURLY)); |
228 | let m = p.start(); | 228 | let m = p.start(); |
229 | p.bump(); | 229 | p.bump(); |
230 | mod_contents(p, true); | ||
230 | p.expect(R_CURLY); | 231 | p.expect(R_CURLY); |
231 | m.complete(p, EXTERN_ITEM_LIST); | 232 | m.complete(p, EXTERN_ITEM_LIST); |
232 | } | 233 | } |
diff --git a/crates/libsyntax2/src/lib.rs b/crates/libsyntax2/src/lib.rs index ccf13e4ab..3b5115110 100644 --- a/crates/libsyntax2/src/lib.rs +++ b/crates/libsyntax2/src/lib.rs | |||
@@ -127,7 +127,8 @@ fn validate_block_structure(root: SyntaxNodeRef) { | |||
127 | assert_eq!( | 127 | assert_eq!( |
128 | node.parent(), | 128 | node.parent(), |
129 | pair.parent(), | 129 | pair.parent(), |
130 | "\nunpaired curleys:\n{}", | 130 | "\nunpaired curleys:\n{}\n{}\n", |
131 | root.text(), | ||
131 | utils::dump_tree(root), | 132 | utils::dump_tree(root), |
132 | ); | 133 | ); |
133 | assert!( | 134 | assert!( |