File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/librustc_parse/parser Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -710,13 +710,6 @@ impl<'a> Parser<'a> {
710
710
}
711
711
}
712
712
713
- /// Returns `true` if we are looking at `const ID`
714
- /// (returns `false` for things like `const fn`, etc.).
715
- fn is_const_item ( & self ) -> bool {
716
- self . token . is_keyword ( kw:: Const ) &&
717
- !self . is_keyword_ahead ( 1 , & [ kw:: Fn , kw:: Unsafe ] )
718
- }
719
-
720
713
/// Parses `auto? trait Foo { ... }` or `trait Foo = Bar;`.
721
714
fn parse_item_trait ( & mut self , lo : Span , unsafety : Unsafety ) -> PResult < ' a , ItemInfo > {
722
715
// Parse optional `auto` prefix.
@@ -866,6 +859,13 @@ impl<'a> Parser<'a> {
866
859
} )
867
860
}
868
861
862
+ /// Returns `true` if we are looking at `const ID`
863
+ /// (returns `false` for things like `const fn`, etc.).
864
+ fn is_const_item ( & self ) -> bool {
865
+ self . token . is_keyword ( kw:: Const ) &&
866
+ !self . is_keyword_ahead ( 1 , & [ kw:: Fn , kw:: Unsafe ] )
867
+ }
868
+
869
869
/// This parses the grammar:
870
870
///
871
871
/// AssocConst = "const" Ident ":" Ty "=" Expr ";"
You can’t perform that action at this time.
0 commit comments