Add comment to remind filtering unsupported features when adding new ones
This commit is contained in:
@@ -102,6 +102,9 @@ impl Stability {
|
|||||||
// check whether they're named already elsewhere in rust
|
// check whether they're named already elsewhere in rust
|
||||||
// e.g. in stdarch and whether the given name matches LLVM's
|
// e.g. in stdarch and whether the given name matches LLVM's
|
||||||
// if it doesn't, to_llvm_feature in llvm_util in rustc_codegen_llvm needs to be adapted.
|
// if it doesn't, to_llvm_feature in llvm_util in rustc_codegen_llvm needs to be adapted.
|
||||||
|
// Additionally, if the feature is not available in older version of LLVM supported by the current
|
||||||
|
// rust, the same function must be updated to filter out these features to avoid triggering
|
||||||
|
// warnings.
|
||||||
//
|
//
|
||||||
// Also note that all target features listed here must be purely additive: for target_feature 1.1 to
|
// Also note that all target features listed here must be purely additive: for target_feature 1.1 to
|
||||||
// be sound, we can never allow features like `+soft-float` (on x86) to be controlled on a
|
// be sound, we can never allow features like `+soft-float` (on x86) to be controlled on a
|
||||||
|
|||||||
Reference in New Issue
Block a user