Skip to content

Commit 5fd5f36

Browse files
committed
wip
1 parent 47ebb61 commit 5fd5f36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_type_ir/src/relate/combine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use tracing::debug;
1+
use tracing::{debug, instrument};
22

33
use super::{
44
ExpectedFound, RelateResult, StructurallyRelateAliases, TypeRelation,
@@ -57,7 +57,7 @@ where
5757
match (a.kind(), b.kind()) {
5858
(ty::Error(e), _) | (_, ty::Error(e)) => {
5959
infcx.set_tainted_by_errors(e);
60-
return Ok(Ty::new_error(infcx.cx(), e));
60+
Ok(Ty::new_error(infcx.cx(), e))
6161
}
6262

6363
// Relate integral variables to other types
@@ -146,6 +146,7 @@ where
146146
}
147147
}
148148

149+
#[instrument(fields(R = std::any::type_name::<R>()), skip(infcx, relation))]
149150
pub fn super_combine_consts<Infcx, I, R>(
150151
infcx: &Infcx,
151152
relation: &mut R,
@@ -157,7 +158,6 @@ where
157158
I: Interner,
158159
R: PredicateEmittingRelation<Infcx>,
159160
{
160-
debug!("super_combine_consts::<{}>({:?}, {:?})", std::any::type_name::<R>(), a, b);
161161
debug_assert!(!a.has_escaping_bound_vars());
162162
debug_assert!(!b.has_escaping_bound_vars());
163163

0 commit comments

Comments
 (0)