diff options
| author | bors <bors@rust-lang.org> | 2022-11-06 02:21:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-06 02:21:34 +0000 |
| commit | a4ab2e064306c2c3e5b1d2efe1d5c0e1a6e0346a (patch) | |
| tree | f4e5e4326d62286bf7cd7643960202edb9c6c589 /compiler/rustc_const_eval/src | |
| parent | e6fead46dc21ba017f7c1a5130ff3d31535acb16 (diff) | |
| parent | 44d1936d003cf393fb69c47d5c316f94850eb403 (diff) | |
| download | rust-a4ab2e064306c2c3e5b1d2efe1d5c0e1a6e0346a.tar.gz rust-a4ab2e064306c2c3e5b1d2efe1d5c0e1a6e0346a.zip | |
Auto merge of #103975 - oli-obk:tracing, r=jackh726
Some tracing and comment cleanups Pulled out of https://github.com/rust-lang/rust/pull/101900 to see if that is the perf impact
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs index 335992342a6..d995d533ca3 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs @@ -146,6 +146,7 @@ impl Qualif for NeedsNonConstDrop { qualifs.needs_non_const_drop } + #[instrument(level = "trace", skip(cx), ret)] fn in_any_value_of_ty<'tcx>(cx: &ConstCx<'_, 'tcx>, ty: Ty<'tcx>) -> bool { // Avoid selecting for simple cases, such as builtin types. if ty::util::is_trivially_const_drop(ty) { @@ -174,6 +175,8 @@ impl Qualif for NeedsNonConstDrop { return true; }; + trace!(?impl_src); + if !matches!( impl_src, ImplSource::ConstDestruct(_) | ImplSource::Param(_, ty::BoundConstness::ConstIfConst) |
