Skip to content

Commit b60b26b

Browse files
committed
Reduce visibility
1 parent 72d8e7e commit b60b26b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

crates/ra_hir/src/ty/traits.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
use std::sync::{Arc, Mutex};
33

44
use chalk_ir::{cast::Cast, family::ChalkIr};
5-
use hir_def::DefWithBodyId;
5+
use hir_def::{expr::ExprId, DefWithBodyId};
66
use log::debug;
77
use ra_db::{impl_intern_key, salsa};
88
use ra_prof::profile;
99
use rustc_hash::FxHashSet;
1010

11+
use crate::{db::HirDatabase, Crate, ImplBlock, Trait, TypeAlias};
12+
1113
use super::{Canonical, GenericPredicate, HirDisplay, ProjectionTy, TraitRef, Ty, TypeWalk};
12-
use crate::{db::HirDatabase, expr::ExprId, Crate, ImplBlock, Trait, TypeAlias};
1314

1415
use self::chalk::{from_chalk, ToChalk};
1516

crates/ra_hir/src/ty/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn direct_super_traits(db: &impl DefDatabase, trait_: TraitId) -> Vec<TraitId> {
3333

3434
/// Returns an iterator over the whole super trait hierarchy (including the
3535
/// trait itself).
36-
pub(crate) fn all_super_traits(db: &impl DefDatabase, trait_: TraitId) -> Vec<TraitId> {
36+
pub(super) fn all_super_traits(db: &impl DefDatabase, trait_: TraitId) -> Vec<TraitId> {
3737
// we need to take care a bit here to avoid infinite loops in case of cycles
3838
// (i.e. if we have `trait A: B; trait B: A;`)
3939
let mut result = vec![trait_];
@@ -52,7 +52,7 @@ pub(crate) fn all_super_traits(db: &impl DefDatabase, trait_: TraitId) -> Vec<Tr
5252
result
5353
}
5454

55-
pub(crate) fn associated_type_by_name_including_super_traits(
55+
pub(super) fn associated_type_by_name_including_super_traits(
5656
db: &impl DefDatabase,
5757
trait_: TraitId,
5858
name: &Name,

0 commit comments

Comments
 (0)