@@ -136,7 +136,6 @@ where
136
136
// `ManuallyDrop`. If it's a struct or enum without a `Drop`
137
137
// impl then check whether the field types need `Drop`.
138
138
ty::Adt(adt_def, substs) => {
139
- debug!("Got value {:?} with substs {:?}", adt_def, substs);
140
139
let tys = match (self.adt_components)(adt_def, substs) {
141
140
Err(e) => return Some(Err(e)),
142
141
Ok(tys) => tys,
@@ -190,16 +189,16 @@ fn drop_tys_helper<'tcx>(
190
189
) -> impl Iterator<Item = NeedsDropResult<Ty<'tcx>>> {
191
190
let adt_components = move |adt_def: &ty::AdtDef, substs: SubstsRef<'tcx>| {
192
191
if adt_def.is_manually_drop() {
193
- debug!("adt_drop_tys : `{:?}` is manually drop", adt_def);
192
+ debug!("drop_tys_helper : `{:?}` is manually drop", adt_def);
194
193
return Ok(Vec::new().into_iter());
195
194
} else if let Some(dtor_info) = adt_has_dtor(adt_def) {
196
195
match dtor_info {
197
196
DtorType::Significant => {
198
- debug!("adt_drop_tys : `{:?}` implements `Drop`", adt_def);
197
+ debug!("drop_tys_helper : `{:?}` implements `Drop`", adt_def);
199
198
return Err(AlwaysRequiresDrop);
200
199
}
201
200
DtorType::Insignificant => {
202
- debug!("adt_drop_tys : `{:?}` drop is insignificant", adt_def);
201
+ debug!("drop_tys_helper : `{:?}` drop is insignificant", adt_def);
203
202
204
203
// Since the destructor is insignificant, we just want to make sure all of
205
204
// the passed in type parameters are also insignificant.
@@ -208,15 +207,14 @@ fn drop_tys_helper<'tcx>(
208
207
}
209
208
}
210
209
} else if adt_def.is_union() {
211
- debug!("adt_drop_tys : `{:?}` is a union", adt_def);
210
+ debug!("drop_tys_helper : `{:?}` is a union", adt_def);
212
211
return Ok(Vec::new().into_iter());
213
212
}
214
- debug!("Path");
215
213
Ok(adt_def
216
214
.all_fields()
217
215
.map(|field| {
218
216
let r = tcx.type_of(field.did).subst(tcx, substs);
219
- debug!("Subst into {:?} with {:?} gettng {:?}", field, substs, r);
217
+ debug!("drop_tys_helper: Subst into {:?} with {:?} gettng {:?}", field, substs, r);
220
218
r
221
219
})
222
220
.collect::<Vec<_>>()
0 commit comments