@@ -34,7 +34,7 @@ use crate::infer::region_constraints::VerifyIfEq;
34
34
/// like are used. This is a particular challenge since this function is invoked
35
35
/// very late in inference and hence cannot make use of the normal inference
36
36
/// machinery.
37
- #[ tracing:: instrument( level = "Debug " , skip( tcx, param_env) ) ]
37
+ #[ tracing:: instrument( level = "debug " , skip( tcx, param_env) ) ]
38
38
pub fn extract_verify_if_eq < ' tcx > (
39
39
tcx : TyCtxt < ' tcx > ,
40
40
param_env : ty:: ParamEnv < ' tcx > ,
@@ -63,7 +63,7 @@ pub fn extract_verify_if_eq<'tcx>(
63
63
}
64
64
65
65
/// True if a (potentially higher-ranked) outlives
66
- #[ tracing:: instrument( level = "Debug " , skip( tcx, param_env) ) ]
66
+ #[ tracing:: instrument( level = "debug " , skip( tcx, param_env) ) ]
67
67
pub ( super ) fn can_match_erased_ty < ' tcx > (
68
68
tcx : TyCtxt < ' tcx > ,
69
69
param_env : ty:: ParamEnv < ' tcx > ,
@@ -102,7 +102,7 @@ impl<'tcx> Match<'tcx> {
102
102
103
103
/// Binds the pattern variable `br` to `value`; returns an `Err` if the pattern
104
104
/// is already bound to a different value.
105
- #[ tracing:: instrument( level = "Debug " , skip( self ) ) ]
105
+ #[ tracing:: instrument( level = "debug " , skip( self ) ) ]
106
106
fn bind (
107
107
& mut self ,
108
108
br : ty:: BoundRegion ,
@@ -167,7 +167,7 @@ impl<'tcx> TypeRelation<'tcx> for Match<'tcx> {
167
167
#[ instrument( skip( self ) , level = "debug" ) ]
168
168
fn tys ( & mut self , pattern : Ty < ' tcx > , value : Ty < ' tcx > ) -> RelateResult < ' tcx , Ty < ' tcx > > {
169
169
if pattern == value {
170
- return Ok ( pattern) ;
170
+ Ok ( pattern)
171
171
} else {
172
172
relate:: super_relate_tys ( self , pattern, value)
173
173
}
@@ -181,7 +181,7 @@ impl<'tcx> TypeRelation<'tcx> for Match<'tcx> {
181
181
) -> RelateResult < ' tcx , ty:: Const < ' tcx > > {
182
182
debug ! ( "{}.consts({:?}, {:?})" , self . tag( ) , pattern, value) ;
183
183
if pattern == value {
184
- return Ok ( pattern) ;
184
+ Ok ( pattern)
185
185
} else {
186
186
relate:: super_relate_consts ( self , pattern, value)
187
187
}
0 commit comments