tracing::instrument cleanup
This commit is contained in:
@@ -627,7 +627,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
}
|
||||
|
||||
/// Expands the given impl trait type, stopping if the type is recursive.
|
||||
#[instrument(skip(self), level = "debug")]
|
||||
#[instrument(skip(self), level = "debug", ret)]
|
||||
pub fn try_expand_impl_trait_type(
|
||||
self,
|
||||
def_id: DefId,
|
||||
@@ -644,7 +644,6 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
};
|
||||
|
||||
let expanded_type = visitor.expand_opaque_ty(def_id, substs).unwrap();
|
||||
trace!(?expanded_type);
|
||||
if visitor.found_recursion { Err(expanded_type) } else { Ok(expanded_type) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user