]> git.lizzy.rs Git - rust.git/commitdiff
Re-reexport some items that were recently made crate-private.
authorTim Kuehn <tikue@google.com>
Fri, 22 Jun 2018 23:23:25 +0000 (16:23 -0700)
committerTim Kuehn <tikue@google.com>
Fri, 22 Jun 2018 23:23:25 +0000 (16:23 -0700)
src/libsyntax/parse/mod.rs
src/libsyntax/parse/parser.rs

index 0050434d42e3f41060be582896f1dd26be0139a1..1cb127bdcc964737737915481518a55b23253f14 100644 (file)
@@ -294,7 +294,7 @@ fn char_lit(lit: &str, diag: Option<(Span, &Handler)>) -> (char, isize) {
 
 /// Parse a string representing a string literal into its final form. Does
 /// unescaping.
-fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
+pub fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
     debug!("str_lit: given {}", lit.escape_default());
     let mut res = String::with_capacity(lit.len());
 
index 9e527fc8aad057288d74a1c2c31a0931e90f32d4..69521c17a253bfa5fd44260e7efea0b977e15fa2 100644 (file)
@@ -5402,7 +5402,7 @@ fn parse_fn_front_matter(&mut self) -> PResult<'a, (Spanned<Constness>, Unsafety
     }
 
     /// Parse an impl item.
-    crate fn parse_impl_item(&mut self, at_end: &mut bool) -> PResult<'a, ImplItem> {
+    pub fn parse_impl_item(&mut self, at_end: &mut bool) -> PResult<'a, ImplItem> {
         maybe_whole!(self, NtImplItem, |x| x);
         let attrs = self.parse_outer_attributes()?;
         let (mut item, tokens) = self.collect_tokens(|this| {