diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs index 46ba8a89a..496d28349 100644 --- a/crates/libsyntax2/src/grammar/mod.rs +++ b/crates/libsyntax2/src/grammar/mod.rs | |||
@@ -40,11 +40,11 @@ pub(crate) use self::{ | |||
40 | items::named_field_def_list, | 40 | items::named_field_def_list, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | pub(crate) fn file(p: &mut Parser) { | 43 | pub(crate) fn root(p: &mut Parser) { |
44 | let file = p.start(); | 44 | let m = p.start(); |
45 | p.eat(SHEBANG); | 45 | p.eat(SHEBANG); |
46 | items::mod_contents(p, false); | 46 | items::mod_contents(p, false); |
47 | file.complete(p, ROOT); | 47 | m.complete(p, ROOT); |
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||