1
Fork 0

Revert calculate_dtor signature change

This commit is contained in:
Dániel Buga 2020-10-09 17:18:57 +02:00
parent 18318a9d84
commit 217d6f9741
4 changed files with 4 additions and 4 deletions

View file

@ -341,7 +341,7 @@ impl<'tcx> TyCtxt<'tcx> {
pub fn calculate_dtor(
self,
adt_did: DefId,
validate: impl Fn(Self, DefId) -> Result<(), ErrorReported>,
validate: &mut dyn FnMut(Self, DefId) -> Result<(), ErrorReported>,
) -> Option<ty::Destructor> {
let drop_trait = self.lang_items().drop_trait()?;
self.ensure().coherent_trait(drop_trait);