File tree 1 file changed +3
-2
lines changed
compiler/rustc_borrowck/src/region_infer
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,10 @@ pub enum ExtraConstraintInfo {
246
246
}
247
247
248
248
#[ instrument( skip( infcx, sccs) , level = "debug" ) ]
249
+ #[ inline( never) ] // This is a debugging tool, we need to discard it from profiles.
249
250
fn sccs_info < ' cx , ' tcx > (
250
251
infcx : & ' cx BorrowckInferCtxt < ' cx , ' tcx > ,
251
- sccs : Rc < Sccs < RegionVid , ConstraintSccIndex > > ,
252
+ sccs : & Sccs < RegionVid , ConstraintSccIndex > ,
252
253
) {
253
254
use crate :: renumber:: RegionCtxt ;
254
255
@@ -348,7 +349,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
348
349
let constraint_sccs = Rc :: new ( constraints. compute_sccs ( & constraint_graph, fr_static) ) ;
349
350
350
351
if cfg ! ( debug_assertions) {
351
- sccs_info ( _infcx, constraint_sccs. clone ( ) ) ;
352
+ sccs_info ( _infcx, & * constraint_sccs) ;
352
353
}
353
354
354
355
let mut scc_values =
You can’t perform that action at this time.
0 commit comments