downgrade some logging
This commit is contained in:
parent
69fe39e8a8
commit
f78acaee03
4 changed files with 12 additions and 9 deletions
|
@ -17,7 +17,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
|
||||||
let param_env = self.cx.tcx.param_env(item_def_id);
|
let param_env = self.cx.tcx.param_env(item_def_id);
|
||||||
let ty = self.cx.tcx.type_of(item_def_id);
|
let ty = self.cx.tcx.type_of(item_def_id);
|
||||||
|
|
||||||
debug!("get_blanket_impls({:?})", ty);
|
trace!("get_blanket_impls({:?})", ty);
|
||||||
let mut impls = Vec::new();
|
let mut impls = Vec::new();
|
||||||
for &trait_def_id in self.cx.tcx.all_traits(()).iter() {
|
for &trait_def_id in self.cx.tcx.all_traits(()).iter() {
|
||||||
if !self.cx.cache.access_levels.is_public(trait_def_id)
|
if !self.cx.cache.access_levels.is_public(trait_def_id)
|
||||||
|
@ -28,9 +28,10 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
|
||||||
// NOTE: doesn't use `for_each_relevant_impl` to avoid looking at anything besides blanket impls
|
// NOTE: doesn't use `for_each_relevant_impl` to avoid looking at anything besides blanket impls
|
||||||
let trait_impls = self.cx.tcx.trait_impls_of(trait_def_id);
|
let trait_impls = self.cx.tcx.trait_impls_of(trait_def_id);
|
||||||
for &impl_def_id in trait_impls.blanket_impls() {
|
for &impl_def_id in trait_impls.blanket_impls() {
|
||||||
debug!(
|
trace!(
|
||||||
"get_blanket_impls: Considering impl for trait '{:?}' {:?}",
|
"get_blanket_impls: Considering impl for trait '{:?}' {:?}",
|
||||||
trait_def_id, impl_def_id
|
trait_def_id,
|
||||||
|
impl_def_id
|
||||||
);
|
);
|
||||||
let trait_ref = self.cx.tcx.impl_trait_ref(impl_def_id).unwrap();
|
let trait_ref = self.cx.tcx.impl_trait_ref(impl_def_id).unwrap();
|
||||||
let is_param = matches!(trait_ref.self_ty().kind(), ty::Param(_));
|
let is_param = matches!(trait_ref.self_ty().kind(), ty::Param(_));
|
||||||
|
@ -50,9 +51,11 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
|
||||||
// FIXME(eddyb) ignoring `obligations` might cause false positives.
|
// FIXME(eddyb) ignoring `obligations` might cause false positives.
|
||||||
drop(obligations);
|
drop(obligations);
|
||||||
|
|
||||||
debug!(
|
trace!(
|
||||||
"invoking predicate_may_hold: param_env={:?}, trait_ref={:?}, ty={:?}",
|
"invoking predicate_may_hold: param_env={:?}, trait_ref={:?}, ty={:?}",
|
||||||
param_env, trait_ref, ty
|
param_env,
|
||||||
|
trait_ref,
|
||||||
|
ty
|
||||||
);
|
);
|
||||||
let predicates = self
|
let predicates = self
|
||||||
.cx
|
.cx
|
||||||
|
|
|
@ -447,9 +447,9 @@ crate fn build_impl(
|
||||||
}
|
}
|
||||||
|
|
||||||
let (merged_attrs, cfg) = merge_attrs(cx, parent_module.into(), load_attrs(cx, did), attrs);
|
let (merged_attrs, cfg) = merge_attrs(cx, parent_module.into(), load_attrs(cx, did), attrs);
|
||||||
debug!("merged_attrs={:?}", merged_attrs);
|
trace!("merged_attrs={:?}", merged_attrs);
|
||||||
|
|
||||||
debug!("build_impl: impl {:?} for {:?}", trait_.def_id(), for_.def_id());
|
trace!("build_impl: impl {:?} for {:?}", trait_.def_id(), for_.def_id());
|
||||||
ret.push(clean::Item::from_def_id_and_attrs_and_parts(
|
ret.push(clean::Item::from_def_id_and_attrs_and_parts(
|
||||||
did,
|
did,
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -1406,7 +1406,7 @@ fn normalize(cx: &mut DocContext<'tcx>, ty: Ty<'_>) -> Option<Ty<'tcx>> {
|
||||||
|
|
||||||
impl<'tcx> Clean<Type> for Ty<'tcx> {
|
impl<'tcx> Clean<Type> for Ty<'tcx> {
|
||||||
fn clean(&self, cx: &mut DocContext<'_>) -> Type {
|
fn clean(&self, cx: &mut DocContext<'_>) -> Type {
|
||||||
debug!("cleaning type: {:?}", self);
|
trace!("cleaning type: {:?}", self);
|
||||||
let ty = normalize(cx, self).unwrap_or(self);
|
let ty = normalize(cx, self).unwrap_or(self);
|
||||||
match *ty.kind() {
|
match *ty.kind() {
|
||||||
ty::Never => Never,
|
ty::Never => Never,
|
||||||
|
|
|
@ -742,7 +742,7 @@ fn fmt_type<'cx>(
|
||||||
use_absolute: bool,
|
use_absolute: bool,
|
||||||
cx: &'cx Context<'_>,
|
cx: &'cx Context<'_>,
|
||||||
) -> fmt::Result {
|
) -> fmt::Result {
|
||||||
debug!("fmt_type(t = {:?})", t);
|
trace!("fmt_type(t = {:?})", t);
|
||||||
|
|
||||||
match *t {
|
match *t {
|
||||||
clean::Generic(name) => write!(f, "{}", name),
|
clean::Generic(name) => write!(f, "{}", name),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue