Revert "Auto merge of #127537 - veluca93:struct_tf, r=BoxyUwU"

This reverts commit acb4e8b625, reversing
changes made to 100fde5246.
This commit is contained in:
Jakub Beránek
2024-09-01 16:35:53 +02:00
parent 1a1cc050d8
commit 47e6b5deed
25 changed files with 27 additions and 511 deletions

View File

@@ -546,8 +546,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
// Provide an impl for suitable functions, rejecting `#[target_feature]` functions (RFC 2396).
ty::FnDef(def_id, args) => {
let tcx = self.tcx();
// FIXME(struct_target_features): should a function that inherits target_features
// through an argument implement Fn traits?
if tcx.fn_sig(def_id).skip_binder().is_fn_trait_compatible()
&& tcx.codegen_fn_attrs(def_id).target_features.is_empty()
{