aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-26 10:09:28 +0100
committerAleksey Kladov <[email protected]>2018-08-26 10:09:28 +0100
commitac226021cfd26a9332b5971f3e05118d77822af5 (patch)
tree04e9d19956b74d551f798bf26f420fa978b8f30f /crates/libsyntax2/src/grammar/items/mod.rs
parent4c121bfa2f2a7a06f01143e3203c650156e2fb4e (diff)
scope based comletion
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/mod.rs')
-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