Skip to content

Commit 621604d

Browse files
committed
Review comments
1 parent 0a69024 commit 621604d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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],

tests/codegen-llvm/inline-always-callsite.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }

0 commit comments

Comments
 (0)