@@ -463,7 +463,7 @@ fn setup_rayon() {
463463
464464/// Dumps memory usage information to the CLI.
465465#[ allow( clippy:: print_stdout) ]
466- fn salsa_memory_dump ( db : & ProjectDatabase ) -> SalsaMemoryDump < ' _ > {
466+ fn salsa_memory_dump ( db : & ProjectDatabase ) -> SalsaMemoryDump {
467467 println ! ( "Counts for entire CLI run:\n {}" , countme:: get_all( ) ) ;
468468
469469 let salsa_db = db as & dyn salsa:: Database ;
@@ -477,15 +477,15 @@ fn salsa_memory_dump(db: &ProjectDatabase) -> SalsaMemoryDump<'_> {
477477 SalsaMemoryDump { ingredients, memos }
478478}
479479
480- struct SalsaMemoryDump < ' db > {
480+ struct SalsaMemoryDump {
481481 ingredients : Vec < salsa:: IngredientInfo > ,
482- memos : Vec < ( ( & ' db str , & ' db str ) , salsa:: IngredientInfo ) > ,
482+ memos : Vec < ( & ' static str , salsa:: IngredientInfo ) > ,
483483}
484484
485485#[ allow( clippy:: cast_precision_loss) ]
486- impl SalsaMemoryDump < ' _ > {
486+ impl SalsaMemoryDump {
487487 fn display_short ( & self ) -> impl Display + ' _ {
488- struct DisplayShort < ' a > ( & ' a SalsaMemoryDump < ' a > ) ;
488+ struct DisplayShort < ' a > ( & ' a SalsaMemoryDump ) ;
489489
490490 impl std:: fmt:: Display for DisplayShort < ' _ > {
491491 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
@@ -498,7 +498,7 @@ impl SalsaMemoryDump<'_> {
498498
499499 let mut total_memo_fields = 0 ;
500500 let mut total_memo_metadata = 0 ;
501- for ( ( _ , _ ) , memo) in & self . 0 . memos {
501+ for ( _ , memo) in & self . 0 . memos {
502502 total_memo_fields += memo. size_of_fields ( ) ;
503503 total_memo_metadata += memo. size_of_metadata ( ) ;
504504 }
@@ -545,7 +545,7 @@ impl SalsaMemoryDump<'_> {
545545 }
546546
547547 fn display_full ( & self ) -> impl Display + ' _ {
548- struct DisplayFull < ' a > ( & ' a SalsaMemoryDump < ' a > ) ;
548+ struct DisplayFull < ' a > ( & ' a SalsaMemoryDump ) ;
549549
550550 impl std:: fmt:: Display for DisplayFull < ' _ > {
551551 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
@@ -571,11 +571,11 @@ impl SalsaMemoryDump<'_> {
571571
572572 let mut total_memo_fields = 0 ;
573573 let mut total_memo_metadata = 0 ;
574- for ( ( input , output ) , memo) in & self . 0 . memos {
574+ for ( query_fn , memo) in & self . 0 . memos {
575575 total_memo_fields += memo. size_of_fields ( ) ;
576576 total_memo_metadata += memo. size_of_metadata ( ) ;
577577
578- writeln ! ( f, "`{input } -> {output }`" ) ?;
578+ writeln ! ( f, "`{query_fn } -> {}`" , memo . debug_name ( ) ) ?;
579579
580580 writeln ! (
581581 f,
0 commit comments