]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51724 - tikue:master, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sat, 23 Jun 2018 04:19:51 +0000 (04:19 +0000)
committerbors <bors@rust-lang.org>
Sat, 23 Jun 2018 04:19:51 +0000 (04:19 +0000)
Re-pub some items whose visibilities were recently reduced.

Reasons described in the most recent comments of https://github.com/rust-lang/rust/pull/51265.

tarpc can't move off of plugins until proc macros can be reexported from other crates.

Fixes https://github.com/google/tarpc/issues/191

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| {