File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
compiler/rustc_mir/src/transform/coverage Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ impl DebugCounters {
285
285
) ,
286
286
} ;
287
287
counters
288
- . insert ( id. into ( ) , DebugCounter :: new ( counter_kind. clone ( ) , some_block_label) )
288
+ . insert ( id, DebugCounter :: new ( counter_kind. clone ( ) , some_block_label) )
289
289
. expect_none (
290
290
"attempt to add the same counter_kind to DebugCounters more than once" ,
291
291
) ;
@@ -340,7 +340,7 @@ impl DebugCounters {
340
340
if self . some_counters . is_some ( ) && ( counter_format. block || !counter_format. id ) {
341
341
let counters = self . some_counters . as_ref ( ) . unwrap ( ) ;
342
342
if let Some ( DebugCounter { some_block_label : Some ( block_label) , .. } ) =
343
- counters. get ( & id. into ( ) )
343
+ counters. get ( & id)
344
344
{
345
345
return if counter_format. id {
346
346
format ! ( "{}#{}" , block_label, id. index( ) )
Original file line number Diff line number Diff line change @@ -1012,15 +1012,14 @@ impl LinkCollector<'_, '_> {
1012
1012
} else {
1013
1013
// This is a bug.
1014
1014
debug ! ( "attempting to resolve item without parent module: {}" , path_str) ;
1015
- let err_kind = ResolutionFailure :: NoParentItem . into ( ) ;
1016
1015
resolution_failure (
1017
1016
self ,
1018
1017
& item,
1019
1018
path_str,
1020
1019
disambiguator,
1021
1020
dox,
1022
1021
link_range,
1023
- smallvec ! [ err_kind ] ,
1022
+ smallvec ! [ ResolutionFailure :: NoParentItem ] ,
1024
1023
) ;
1025
1024
return None ;
1026
1025
} ;
You can’t perform that action at this time.
0 commit comments