File tree 1 file changed +6
-1
lines changed
compiler/rustc_codegen_ssa/src
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,12 @@ impl Stability {
51
51
// When adding features to the below lists
52
52
// check whether they're named already elsewhere in rust
53
53
// e.g. in stdarch and whether the given name matches LLVM's
54
- // if it doesn't, to_llvm_feature in llvm_util in rustc_codegen_llvm needs to be adapted
54
+ // if it doesn't, to_llvm_feature in llvm_util in rustc_codegen_llvm needs to be adapted.
55
+ //
56
+ // Also note that all target features listed here must be purely additive: for target_feature 1.1 to
57
+ // be sound, we can never allow features like `+soft-float` (on x86) to be controlled on a
58
+ // per-function level, since we would then allow safe calls from functions with `+soft-float` to
59
+ // functions without that feature!
55
60
//
56
61
// When adding a new feature, be particularly mindful of features that affect function ABIs. Those
57
62
// need to be treated very carefully to avoid introducing unsoundness! This often affects features
You can’t perform that action at this time.
0 commit comments