about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorjeb <jeb@jebrosen.com>2018-06-11 10:40:58 -0600
committerjeb <jeb@jebrosen.com>2018-06-11 10:40:58 -0600
commit7e56261fcbdaa8d039ee507911f8e5e886de1e41 (patch)
tree362dd5ebf992f3a302d2d71983f81774a214acb8 /src/libsyntax/parse
parent13f8d073fe5c87638d9ebe849c5fdd80e87da95a (diff)
downloadrust-7e56261fcbdaa8d039ee507911f8e5e886de1e41.tar.gz
rust-7e56261fcbdaa8d039ee507911f8e5e886de1e41.zip
Make parse_seq_to_end and parse_path public
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 97fcf70f531..c192dec42fa 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1022,7 +1022,7 @@ impl<'a> Parser<'a> {
     /// Parse a sequence, including the closing delimiter. The function
     /// f must consume tokens until reaching the next separator or
     /// closing bracket.
-    crate fn parse_seq_to_end<T, F>(&mut self,
+    pub fn parse_seq_to_end<T, F>(&mut self,
                                   ket: &token::Token,
                                   sep: SeqSep,
                                   f: F)
@@ -1886,7 +1886,7 @@ impl<'a> Parser<'a> {
     /// `a::b::C::<D>` (with disambiguator)
     /// `Fn(Args)` (without disambiguator)
     /// `Fn::(Args)` (with disambiguator)
-    crate fn parse_path(&mut self, style: PathStyle) -> PResult<'a, ast::Path> {
+    pub fn parse_path(&mut self, style: PathStyle) -> PResult<'a, ast::Path> {
         self.parse_path_common(style, true)
     }