Skip to content

Commit 2db44b6

Browse files
committed
Auto merge of #51724 - tikue:master, r=Mark-Simulacrum
Re-pub some items whose visibilities were recently reduced. Reasons described in the most recent comments of #51265. tarpc can't move off of plugins until proc macros can be reexported from other crates. Fixes google/tarpc#191
2 parents 6dc81de + 0c33e0a commit 2db44b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/parse/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn char_lit(lit: &str, diag: Option<(Span, &Handler)>) -> (char, isize) {
294294

295295
/// Parse a string representing a string literal into its final form. Does
296296
/// unescaping.
297-
fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
297+
pub fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
298298
debug!("str_lit: given {}", lit.escape_default());
299299
let mut res = String::with_capacity(lit.len());
300300

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5402,7 +5402,7 @@ impl<'a> Parser<'a> {
54025402
}
54035403

54045404
/// Parse an impl item.
5405-
crate fn parse_impl_item(&mut self, at_end: &mut bool) -> PResult<'a, ImplItem> {
5405+
pub fn parse_impl_item(&mut self, at_end: &mut bool) -> PResult<'a, ImplItem> {
54065406
maybe_whole!(self, NtImplItem, |x| x);
54075407
let attrs = self.parse_outer_attributes()?;
54085408
let (mut item, tokens) = self.collect_tokens(|this| {

0 commit comments

Comments
 (0)