File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,9 @@ impl Module {
362
362
}
363
363
364
364
pub fn diagnostics ( self , db : & dyn HirDatabase , sink : & mut DiagnosticSink ) {
365
- let _p = profile:: span ( "Module::diagnostics" ) ;
365
+ let _p = profile:: span ( "Module::diagnostics" ) . detail ( || {
366
+ format ! ( "{:?}" , self . name( db) . map_or( "<unknown>" . into( ) , |name| name. to_string( ) ) )
367
+ } ) ;
366
368
let crate_def_map = db. crate_def_map ( self . id . krate ) ;
367
369
crate_def_map. add_diagnostics ( db. upcast ( ) , self . id . local_id , sink) ;
368
370
for decl in self . declarations ( db) {
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ impl NameRefClass {
258
258
sema : & Semantics < RootDatabase > ,
259
259
name_ref : & ast:: NameRef ,
260
260
) -> Option < NameRefClass > {
261
- let _p = profile:: span ( "classify_name_ref" ) ;
261
+ let _p = profile:: span ( "classify_name_ref" ) . detail ( || name_ref . to_string ( ) ) ;
262
262
263
263
let parent = name_ref. syntax ( ) . parent ( ) ?;
264
264
You can’t perform that action at this time.
0 commit comments