Skip to content

Commit 0490b50

Browse files
committed
Review comments
1 parent 0cf4fd6 commit 0490b50

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
@@ -2090,6 +2090,8 @@ impl<'tcx> TyCtxt<'tcx> {
20902090
self.sess.dcx()
20912091
}
20922092

2093+
/// Checks to see if the caller (`body_features`) has all the features required by the callee
2094+
/// (`callee_features`).
20932095
pub fn is_target_feature_call_safe(
20942096
self,
20952097
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)