Skip to content

Commit 65188d5

Browse files
committed
Add some more debug logging
1 parent e4ad188 commit 65188d5

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
@@ -221,6 +221,7 @@ impl<'tcx> Const<'tcx> {
221221
/// `param_def_id` is the [`DefId`] of the declared param that this [`ConstArg`] is being
222222
/// supplied to. We need this in case this `ConstArg` is a [`ConstArgKind::Anon`]
223223
/// so we can tell the [`AnonConst`] what type it should be.
224+
#[instrument(skip(tcx), level = "debug")]
224225
pub fn from_const_arg(
225226
tcx: TyCtxt<'tcx>,
226227
const_arg: &'tcx hir::ConstArg<'tcx>,
@@ -236,6 +237,7 @@ impl<'tcx> Const<'tcx> {
236237
///
237238
/// This distinction is only relevant for [`hir::ConstArgKind::Anon`];
238239
/// see [`Self::from_const_arg_without_feeding`].
240+
#[instrument(skip(tcx), level = "debug")]
239241
pub fn from_const_arg_without_feeding(
240242
tcx: TyCtxt<'tcx>,
241243
const_arg: &'tcx hir::ConstArg<'tcx>,

0 commit comments

Comments
 (0)