Skip to content

Commit b744bb6

Browse files
committed
rustc_trait_selection changes
1 parent 181d28b commit b744bb6

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs

-11
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
307307
self.assemble_builtin_bound_candidates(sized_conditions, &mut candidates);
308308
} else if lang_items.unsize_trait() == Some(def_id) {
309309
self.assemble_candidates_for_unsizing(obligation, &mut candidates);
310-
} else if lang_items.drop_trait() == Some(def_id)
311-
&& obligation.predicate.is_const_if_const()
312-
{
313-
// holds to make it easier to transition
314-
// FIXME(fee1-dead): add a note for selection error of `~const Drop`
315-
// when beta is bumped
316-
// FIXME: remove this when beta is bumped
317-
#[cfg(bootstrap)]
318-
{}
319-
320-
candidates.vec.push(SelectionCandidate::ConstDestructCandidate(None))
321310
} else if lang_items.destruct_trait() == Some(def_id) {
322311
self.assemble_const_destruct_candidates(obligation, &mut candidates);
323312
} else {

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1106,13 +1106,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
11061106
}
11071107

11081108
let drop_trait = self.tcx().require_lang_item(LangItem::Drop, None);
1109-
// FIXME: remove if statement below when beta is bumped
1110-
#[cfg(bootstrap)]
1111-
{}
1112-
1113-
if obligation.predicate.skip_binder().def_id() == drop_trait {
1114-
return Ok(ImplSourceConstDestructData { nested: vec![] });
1115-
}
11161109

11171110
let tcx = self.tcx();
11181111
let self_ty = self.infcx.shallow_resolve(obligation.self_ty());

0 commit comments

Comments
 (0)