Skip to content

Commit dbaa786

Browse files
committed
Reduce exposure of some things.
1 parent 3570468 commit dbaa786

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_ast_lowering/src/index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_middle::ty::TyCtxt;
1010
use rustc_span::{Span, DUMMY_SP};
1111

1212
/// A visitor that walks over the HIR and collects `Node`s into a HIR map.
13-
pub(super) struct NodeCollector<'a, 'hir> {
13+
struct NodeCollector<'a, 'hir> {
1414
tcx: TyCtxt<'hir>,
1515

1616
bodies: &'a SortedMap<ItemLocalId, &'hir Body<'hir>>,

compiler/rustc_ast_lowering/src/lifetime_collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<'ast> Visitor<'ast> for LifetimeCollectVisitor<'ast> {
108108
}
109109
}
110110

111-
pub fn lifetimes_in_bounds(
111+
pub(crate) fn lifetimes_in_bounds(
112112
resolver: &ResolverAstLowering,
113113
bounds: &GenericBounds,
114114
) -> Vec<Lifetime> {

compiler/rustc_ast_lowering/src/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1818
self.arena.alloc(self.lower_pat_mut(pattern))
1919
}
2020

21-
pub(crate) fn lower_pat_mut(&mut self, mut pattern: &Pat) -> hir::Pat<'hir> {
21+
fn lower_pat_mut(&mut self, mut pattern: &Pat) -> hir::Pat<'hir> {
2222
ensure_sufficient_stack(|| {
2323
// loop here to avoid recursion
2424
let node = loop {

0 commit comments

Comments
 (0)