1
Fork 0

Instrument important fns in AST lowering

This commit is contained in:
Santiago Pastorino 2022-05-20 15:52:56 -03:00
parent 7fe2c4b00d
commit a22aad32eb
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 18 additions and 6 deletions

View file

@ -15,6 +15,7 @@ use smallvec::smallvec;
use tracing::debug;
impl<'a, 'hir> LoweringContext<'a, 'hir> {
#[instrument(level = "trace", skip(self))]
pub(crate) fn lower_qpath(
&mut self,
id: NodeId,
@ -23,7 +24,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
param_mode: ParamMode,
itctx: ImplTraitContext,
) -> hir::QPath<'hir> {
debug!("lower_qpath(id: {:?}, qself: {:?}, p: {:?})", id, qself, p);
let qself_position = qself.as_ref().map(|q| q.position);
let qself = qself.as_ref().map(|q| self.lower_ty(&q.ty, itctx));