diff options
| author | bors <bors@rust-lang.org> | 2018-06-23 04:19:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-23 04:19:51 +0000 |
| commit | 2db44b62e764e01cb889e89ef60231ad9ab3b4c9 (patch) | |
| tree | 971ea5e44eb6feec9b07d6c8991626787b49ce04 /src/libsyntax/parse | |
| parent | 6dc81dec4468ce21c5adaca954de66b1aa5a375c (diff) | |
| parent | 0c33e0ae134937f79182c8e58ea0cb1180c8fb3f (diff) | |
| download | rust-2db44b62e764e01cb889e89ef60231ad9ab3b4c9.tar.gz rust-2db44b62e764e01cb889e89ef60231ad9ab3b4c9.zip | |
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 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
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 0050434d42e..1cb127bdcc9 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -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()); diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 9e527fc8aad..69521c17a25 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5402,7 +5402,7 @@ impl<'a> Parser<'a> { } /// 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| { |
