File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2088,6 +2088,8 @@ impl<'tcx> TyCtxt<'tcx> {
20882088 self . sess . dcx ( )
20892089 }
20902090
2091+ /// Checks to see if the caller (`body_features`) has all the features required by the callee
2092+ /// (`callee_features`).
20912093 pub fn is_target_feature_call_safe (
20922094 self ,
20932095 callee_features : & [ TargetFeature ] ,
Original file line number Diff line number Diff line change @@ -34,4 +34,8 @@ pub fn inherits_from_global() -> i32 {
3434 }
3535}
3636
37+ // Attribute #3 requires the alwaysinline attribute, the alwaysinline attribute is not emitted on a
38+ // function definition when target features are present, rather it will be moved onto the function
39+ // call, if the features match up.
40+ //
3741// CHECK: attributes #3 = { alwaysinline nounwind }
You can’t perform that action at this time.
0 commit comments