You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// warning: ABI error: this function call uses a avx vector type, which is not enabled in the caller
5056
-
/// --> lint_example.rs:18:12
5057
-
/// |
5058
-
/// | unsafe { with_target_feature(v); }
5059
-
/// | ^^^^^^^^^^^^^^^^^^^^^^ function called here
5060
-
/// |
5061
-
/// = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5062
-
/// = note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5063
-
/// = help: consider enabling it globally (-C target-feature=+avx) or locally (#[target_feature(enable="avx")])
5064
-
/// = note: `#[warn(abi_unsupported_vector_types)]` on by default
5065
-
///
5066
-
///
5067
-
/// warning: ABI error: this function definition uses a avx vector type, which is not enabled
/// | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function defined here
5072
-
/// |
5073
-
/// = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5074
-
/// = note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5075
-
/// = help: consider enabling it globally (-C target-feature=+avx) or locally (#[target_feature(enable="avx")])
5076
-
/// ```
5077
-
///
5078
-
///
5079
-
///
5080
-
/// ### Explanation
5081
-
///
5082
-
/// The C ABI for `__m256` requires the value to be passed in an AVX register,
5083
-
/// which is only possible when the `avx` target feature is enabled.
5084
-
/// Therefore, `missing_target_feature` cannot be compiled without that target feature.
5085
-
/// A similar (but complementary) message is triggered when `with_target_feature` is called
5086
-
/// by a function that does not enable the `avx` target feature.
5087
-
///
5088
-
/// Note that this lint is very similar to the `-Wpsabi` warning in `gcc`/`clang`.
5089
-
pubABI_UNSUPPORTED_VECTOR_TYPES,
5090
-
Warn,
5091
-
"this function call or definition uses a vector type which is not enabled",
0 commit comments