]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/select/confirmation.rs
Rollup merge of #95751 - compiler-errors:ambig-int, r=jackh726
[rust.git] / compiler / rustc_trait_selection / src / traits / select / confirmation.rs
index 18a37759543174d5c558960e646f3b3c0b6159b9..b97ab39d991fee4dd05b23d2f0f9d46bfe254379 100644 (file)
@@ -1106,13 +1106,6 @@ fn confirm_const_destruct_candidate(
         }
 
         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());