Skip to content

Commit 5d33dde

Browse files
committed
Add some more debug logging
1 parent 7f4b594 commit 5d33dde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/consts.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl<'tcx> Const<'tcx> {
184184
/// `param_def_id` is the [`DefId`] of the declared param that this [`ConstArg`] is being
185185
/// supplied to. We need this in case this `ConstArg` is a [`ConstArgKind::Anon`]
186186
/// so we can tell the [`AnonConst`] what type it should be.
187+
#[instrument(skip(tcx), level = "debug")]
187188
pub fn from_const_arg(
188189
tcx: TyCtxt<'tcx>,
189190
const_arg: &'tcx hir::ConstArg<'tcx>,
@@ -199,6 +200,7 @@ impl<'tcx> Const<'tcx> {
199200
///
200201
/// This distinction is only relevant for [`hir::ConstArgKind::Anon`];
201202
/// see [`Self::from_const_arg_without_feeding`].
203+
#[instrument(skip(tcx), level = "debug")]
202204
pub fn from_const_arg_without_feeding(
203205
tcx: TyCtxt<'tcx>,
204206
const_arg: &'tcx hir::ConstArg<'tcx>,

0 commit comments

Comments
 (0)