aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/mod.rs')
-rw-r--r--crates/libsyntax2/src/grammar/items/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs
index 57742ecb9..85d7fe770 100644
--- a/crates/libsyntax2/src/grammar/items/mod.rs
+++ b/crates/libsyntax2/src/grammar/items/mod.rs
@@ -1,11 +1,11 @@
1 1
2mod consts; 2mod consts;
3mod structs; 3mod nominal;
4mod traits; 4mod traits;
5mod use_item; 5mod use_item;
6 6
7use super::*; 7use super::*;
8pub(crate) use self::structs::named_field_def_list; 8pub(crate) use self::nominal::named_field_def_list;
9 9
10// test mod_contents 10// test mod_contents
11// fn foo() {} 11// fn foo() {}
@@ -176,7 +176,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
176 MODULE 176 MODULE
177 } 177 }
178 STRUCT_KW => { 178 STRUCT_KW => {
179 structs::struct_def(p); 179 nominal::struct_def(p);
180 if p.at(SEMI) { 180 if p.at(SEMI) {
181 p.err_and_bump( 181 p.err_and_bump(
182 "expected item, found `;`\n\ 182 "expected item, found `;`\n\
@@ -186,7 +186,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
186 STRUCT_DEF 186 STRUCT_DEF
187 } 187 }
188 ENUM_KW => { 188 ENUM_KW => {
189 structs::enum_def(p); 189 nominal::enum_def(p);
190 ENUM_DEF 190 ENUM_DEF
191 } 191 }
192 USE_KW => { 192 USE_KW => {