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
/// 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());
}
/// 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| {