- let anon_const_def_id =
- cx.tcx().hir().local_def_id(anon_const.hir_id).to_def_id();
- let const_value =
- cx.tcx().const_eval_poly(anon_const_def_id).unwrap_or_else(
- |_| span_bug!(*op_sp, "asm const cannot be resolved"),
- );
+ let const_value = cx
+ .tcx()
+ .const_eval_poly(anon_const.def_id.to_def_id())
+ .unwrap_or_else(|_| {
+ span_bug!(*op_sp, "asm const cannot be resolved")
+ });