Skip to content

Commit 70e2df5

Browse files
committed
tydecode: tighten privacy
1 parent 2a53744 commit 70e2df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/metadata/tydecode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl<'a,'tcx> PState<'a,'tcx> {
211211
return &self.data[start_pos..end_pos];
212212
}
213213

214-
pub fn parse_name(&mut self, last: char) -> ast::Name {
214+
fn parse_name(&mut self, last: char) -> ast::Name {
215215
fn is_last(b: char, c: char) -> bool { return c == b; }
216216
let bytes = self.scan(|a| is_last(last, a));
217217
token::intern(str::from_utf8(bytes).unwrap())
@@ -655,7 +655,7 @@ impl<'a,'tcx> PState<'a,'tcx> {
655655
variadic: variadic})
656656
}
657657

658-
pub fn parse_predicate(&mut self) -> ty::Predicate<'tcx> {
658+
fn parse_predicate(&mut self) -> ty::Predicate<'tcx> {
659659
match self.next() {
660660
't' => ty::Binder(self.parse_trait_ref()).to_predicate(),
661661
'e' => ty::Binder(ty::EquatePredicate(self.parse_ty(),
@@ -784,7 +784,7 @@ fn data_log_string(data: &[u8], pos: usize) -> String {
784784
}
785785

786786
// Rust metadata parsing
787-
pub fn parse_defid(buf: &[u8]) -> ast::DefId {
787+
fn parse_defid(buf: &[u8]) -> ast::DefId {
788788
let mut colon_idx = 0;
789789
let len = buf.len();
790790
while colon_idx < len && buf[colon_idx] != ':' as u8 { colon_idx += 1; }

0 commit comments

Comments
 (0)