File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ impl TraitData {
154154 let tr_loc = tr. lookup ( db) ;
155155 let item_tree = tr_loc. id . item_tree ( db) ;
156156 let tr_def = & item_tree[ tr_loc. id . value ] ;
157+ let _cx = stdx:: panic_context:: enter ( format ! (
158+ "trait_data_query({:?} -> {:?} -> {:?})" ,
159+ tr, tr_loc, tr_def
160+ ) ) ;
157161 let name = tr_def. name . clone ( ) ;
158162 let is_auto = tr_def. is_auto ;
159163 let is_unsafe = tr_def. is_unsafe ;
@@ -341,6 +345,10 @@ fn collect_items(
341345 let ast_id_map = db. ast_id_map ( tree_id. file_id ( ) ) ;
342346 let root = db. parse_or_expand ( tree_id. file_id ( ) ) . unwrap ( ) ;
343347 let call = ast_id_map. get ( call. ast_id ) . to_node ( & root) ;
348+ let _cx = stdx:: panic_context:: enter ( format ! (
349+ "collect_items MacroCall: {}\n expander={:#?}" ,
350+ call, expander
351+ ) ) ;
344352 let res = expander. enter_expand ( db, call) ;
345353
346354 if let Ok ( res) = res {
Original file line number Diff line number Diff line change @@ -1450,6 +1450,10 @@ pub(crate) fn impl_self_ty_recover(
14501450pub ( crate ) fn impl_trait_query ( db : & dyn HirDatabase , impl_id : ImplId ) -> Option < Binders < TraitRef > > {
14511451 let impl_data = db. impl_data ( impl_id) ;
14521452 let resolver = impl_id. resolver ( db. upcast ( ) ) ;
1453+ let _cx = stdx:: panic_context:: enter ( format ! (
1454+ "impl_trait_query({:?} -> {:?}) resolver={:#?}" ,
1455+ impl_id, impl_data, resolver
1456+ ) ) ;
14531457 let ctx =
14541458 TyLoweringContext :: new ( db, & resolver) . with_type_param_mode ( TypeParamLoweringMode :: Variable ) ;
14551459 let ( self_ty, binders) = db. impl_self_ty ( impl_id) . into_value_and_skipped_binders ( ) ;
You can’t perform that action at this time.
0 commit comments