We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
body_codegen_attrs
adjust_target_feature_sig
1 parent e0cb264 commit 6314bd7Copy full SHA for 6314bd7
1 file changed
compiler/rustc_middle/src/ty/context.rs
@@ -1330,8 +1330,8 @@ impl<'tcx> TyCtxt<'tcx> {
1330
caller: DefId,
1331
) -> Option<ty::Binder<'tcx, ty::FnSig<'tcx>>> {
1332
let fun_features = &self.codegen_fn_attrs(fun_def).target_features;
1333
- let callee_features = &self.codegen_fn_attrs(caller).target_features;
1334
- if self.is_target_feature_call_safe(&fun_features, &callee_features) {
+ let caller_features = &self.body_codegen_attrs(caller).target_features;
+ if self.is_target_feature_call_safe(&fun_features, &caller_features) {
1335
return Some(fun_sig.map_bound(|sig| ty::FnSig { safety: hir::Safety::Safe, ..sig }));
1336
}
1337
None
0 commit comments