diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2021-02-28 18:26:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-28 17:26:55 +0000 |
| commit | d6a22093aafee0437e5a1bd99300242c528e5e01 (patch) | |
| tree | a9669e1584e135573f4e340651c4de3d062d9d50 /library/stdarch/crates/stdarch-verify/src | |
| parent | 62acdc9f3881c8bc305af6518b02af80138bbcfd (diff) | |
| download | rust-d6a22093aafee0437e5a1bd99300242c528e5e01.tar.gz rust-d6a22093aafee0437e5a1bd99300242c528e5e01.zip | |
Convert SSE 4.2 intrinsics to const generics (#1023)
Diffstat (limited to 'library/stdarch/crates/stdarch-verify/src')
| -rw-r--r-- | library/stdarch/crates/stdarch-verify/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs index ce8bb0e9ed1..48b402737ff 100644 --- a/library/stdarch/crates/stdarch-verify/src/lib.rs +++ b/library/stdarch/crates/stdarch-verify/src/lib.rs @@ -119,6 +119,15 @@ fn functions(input: TokenStream, dirs: &[&str]) -> TokenStream { #[rustc_legacy_const_generics]" ); } + + // The list of required consts, used to verify the arguments, comes from either the + // `rustc_args_required_const` or the `rustc_legacy_const_generics` attribute. + let required_const = if required_const.is_empty() { + legacy_const_generics.clone() + } else { + required_const + }; + legacy_const_generics.sort(); for (idx, ty) in legacy_const_generics .into_iter() |
