Skip to content

Commit d6a12b4

Browse files
Don't dump DefMaps to build the panic context
1 parent 4235a4a commit d6a12b4

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

crates/hir_def/src/data.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ fn collect_items(
345345
let ast_id_map = db.ast_id_map(tree_id.file_id());
346346
let root = db.parse_or_expand(tree_id.file_id()).unwrap();
347347
let call = ast_id_map.get(call.ast_id).to_node(&root);
348-
let _cx = stdx::panic_context::enter(format!(
349-
"collect_items MacroCall: {}\nexpander={:#?}",
350-
call, expander
351-
));
348+
let _cx = stdx::panic_context::enter(format!("collect_items MacroCall: {}", call));
352349
let res = expander.enter_expand(db, call);
353350

354351
if let Ok(res) = res {

crates/hir_ty/src/lower.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,10 +1450,8 @@ pub(crate) fn impl_self_ty_recover(
14501450
pub(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-
));
1453+
let _cx =
1454+
stdx::panic_context::enter(format!("impl_trait_query({:?} -> {:?})", impl_id, impl_data));
14571455
let ctx =
14581456
TyLoweringContext::new(db, &resolver).with_type_param_mode(TypeParamLoweringMode::Variable);
14591457
let (self_ty, binders) = db.impl_self_ty(impl_id).into_value_and_skipped_binders();

0 commit comments

Comments
 (0)