Some tracing and comment cleanups
This commit is contained in:
parent
47c008e440
commit
44d1936d00
10 changed files with 23 additions and 56 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue