aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r--crates/libsyntax2/src/grammar/items/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs
index a285892df..7c6f7b63e 100644
--- a/crates/libsyntax2/src/grammar/items/mod.rs
+++ b/crates/libsyntax2/src/grammar/items/mod.rs
@@ -115,7 +115,7 @@ pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
115 // test unsafe_fn 115 // test unsafe_fn
116 // unsafe fn foo() {} 116 // unsafe fn foo() {}
117 FN_KW => { 117 FN_KW => {
118 function(p, flavor); 118 fn_def(p, flavor);
119 FN_DEF 119 FN_DEF
120 } 120 }
121 121
@@ -227,7 +227,7 @@ fn extern_item_list(p: &mut Parser) {
227 m.complete(p, EXTERN_ITEM_LIST); 227 m.complete(p, EXTERN_ITEM_LIST);
228} 228}
229 229
230fn function(p: &mut Parser, flavor: ItemFlavor) { 230fn fn_def(p: &mut Parser, flavor: ItemFlavor) {
231 assert!(p.at(FN_KW)); 231 assert!(p.at(FN_KW));
232 p.bump(); 232 p.bump();
233 233