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 {
285285 ) ,
286286 } ;
287287 counters
288- . insert ( id. into ( ) , DebugCounter :: new ( counter_kind. clone ( ) , some_block_label) )
288+ . insert ( id, DebugCounter :: new ( counter_kind. clone ( ) , some_block_label) )
289289 . expect_none (
290290 "attempt to add the same counter_kind to DebugCounters more than once" ,
291291 ) ;
@@ -340,7 +340,7 @@ impl DebugCounters {
340340 if self . some_counters . is_some ( ) && ( counter_format. block || !counter_format. id ) {
341341 let counters = self . some_counters . as_ref ( ) . unwrap ( ) ;
342342 if let Some ( DebugCounter { some_block_label : Some ( block_label) , .. } ) =
343- counters. get ( & id. into ( ) )
343+ counters. get ( & id)
344344 {
345345 return if counter_format. id {
346346 format ! ( "{}#{}" , block_label, id. index( ) )
Original file line number Diff line number Diff line change @@ -1012,15 +1012,14 @@ impl LinkCollector<'_, '_> {
10121012 } else {
10131013 // This is a bug.
10141014 debug ! ( "attempting to resolve item without parent module: {}" , path_str) ;
1015- let err_kind = ResolutionFailure :: NoParentItem . into ( ) ;
10161015 resolution_failure (
10171016 self ,
10181017 & item,
10191018 path_str,
10201019 disambiguator,
10211020 dox,
10221021 link_range,
1023- smallvec ! [ err_kind ] ,
1022+ smallvec ! [ ResolutionFailure :: NoParentItem ] ,
10241023 ) ;
10251024 return None ;
10261025 } ;
You can’t perform that action at this time.
0 commit comments