File tree 2 files changed +4
-4
lines changed
rustc_hir_analysis/src/check
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ pub fn provide(providers: &mut Providers) {
114
114
}
115
115
116
116
fn adt_destructor ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> Option < ty:: Destructor > {
117
- tcx. calculate_dtor ( def_id. to_def_id ( ) , always_applicable:: check_drop_impl)
117
+ tcx. calculate_dtor ( def_id, always_applicable:: check_drop_impl)
118
118
}
119
119
120
120
fn adt_async_destructor ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> Option < ty:: AsyncDestructor > {
121
- tcx. calculate_async_dtor ( def_id. to_def_id ( ) , always_applicable:: check_drop_impl)
121
+ tcx. calculate_async_dtor ( def_id, always_applicable:: check_drop_impl)
122
122
}
123
123
124
124
/// Given a `DefId` for an opaque type in return position, find its parent item's return
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ impl<'tcx> TyCtxt<'tcx> {
389
389
/// Calculate the destructor of a given type.
390
390
pub fn calculate_dtor (
391
391
self ,
392
- adt_did : DefId ,
392
+ adt_did : LocalDefId ,
393
393
validate : impl Fn ( Self , DefId ) -> Result < ( ) , ErrorGuaranteed > ,
394
394
) -> Option < ty:: Destructor > {
395
395
let drop_trait = self . lang_items ( ) . drop_trait ( ) ?;
@@ -426,7 +426,7 @@ impl<'tcx> TyCtxt<'tcx> {
426
426
/// Calculate the async destructor of a given type.
427
427
pub fn calculate_async_dtor (
428
428
self ,
429
- adt_did : DefId ,
429
+ adt_did : LocalDefId ,
430
430
validate : impl Fn ( Self , DefId ) -> Result < ( ) , ErrorGuaranteed > ,
431
431
) -> Option < ty:: AsyncDestructor > {
432
432
let async_drop_trait = self . lang_items ( ) . async_drop_trait ( ) ?;
You can’t perform that action at this time.
0 commit comments