aboutsummaryrefslogtreecommitdiff
path: root/src/grammar/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar/types.rs')
-rw-r--r--src/grammar/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grammar/types.rs b/src/grammar/types.rs
index 565037cb0..9e63c9b2a 100644
--- a/src/grammar/types.rs
+++ b/src/grammar/types.rs
@@ -6,7 +6,7 @@ pub(super) fn type_(p: &mut Parser) {
6 EXCL => never_type(p), 6 EXCL => never_type(p),
7 STAR => pointer_type(p), 7 STAR => pointer_type(p),
8 L_BRACK => array_or_slice_type(p), 8 L_BRACK => array_or_slice_type(p),
9 AMPERSAND => reference_type(p), 9 AMP => reference_type(p),
10 UNDERSCORE => placeholder_type(p), 10 UNDERSCORE => placeholder_type(p),
11 FN_KW | UNSAFE_KW | EXTERN_KW => fn_pointer_type(p), 11 FN_KW | UNSAFE_KW | EXTERN_KW => fn_pointer_type(p),
12 FOR_KW => for_type(p), 12 FOR_KW => for_type(p),
@@ -130,7 +130,7 @@ fn array_or_slice_type(p: &mut Parser) {
130// type B = &'static (); 130// type B = &'static ();
131// type C = &mut (); 131// type C = &mut ();
132fn reference_type(p: &mut Parser) { 132fn reference_type(p: &mut Parser) {
133 assert!(p.at(AMPERSAND)); 133 assert!(p.at(AMP));
134 let m = p.start(); 134 let m = p.start();
135 p.bump(); 135 p.bump();
136 p.eat(LIFETIME); 136 p.eat(LIFETIME);