diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2022-07-26 11:39:06 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-08-04 11:26:52 -0300 |
| commit | 399609e841f36f32d22d53df4c1633ff038f2ff7 (patch) | |
| tree | 67d895dc4437820af784345c6387765bcb7372e7 | |
| parent | cda2c04592850eb8248210beb8efd9c35de0dc19 (diff) | |
| download | rust-399609e841f36f32d22d53df4c1633ff038f2ff7.tar.gz rust-399609e841f36f32d22d53df4c1633ff038f2ff7.zip | |
Add debug! calls
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index dfd23dbd4d7..b8383af521f 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1378,6 +1378,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { lctx.lower_param_bounds(bounds, itctx, true) } else { if std::env::var("NEW_COLLECT_LIFETIMES").is_ok() { + debug!(?lctx.captured_lifetimes); + let lifetime_stash = std::mem::replace( &mut lctx.captured_lifetimes, Some(LifetimeCaptureContext { @@ -1388,6 +1390,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { ); let (lifetimes_in_bounds, binders_to_ignore) = ast::lifetimes_in_bounds(bounds); + debug!(?lifetimes_in_bounds); + debug!(?binders_to_ignore); for lifetime in &lifetimes_in_bounds { let ident = lifetime.ident; @@ -1397,6 +1401,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { .resolver .get_lifetime_res(lifetime.id) .unwrap_or(LifetimeRes::Error); + debug!(?res); if let Some(mut captured_lifetimes) = lctx.captured_lifetimes.take() { match res { |
