rustc_trait_selection changes

This commit is contained in:
Pietro Albini
2022-04-05 15:09:41 +02:00
committed by Pietro Albini
parent 181d28bb61
commit b744bb67fd
2 changed files with 0 additions and 18 deletions

View File

@@ -1106,13 +1106,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
}
let drop_trait = self.tcx().require_lang_item(LangItem::Drop, None);
// FIXME: remove if statement below when beta is bumped
#[cfg(bootstrap)]
{}
if obligation.predicate.skip_binder().def_id() == drop_trait {
return Ok(ImplSourceConstDestructData { nested: vec![] });
}
let tcx = self.tcx();
let self_ty = self.infcx.shallow_resolve(obligation.self_ty());