From 96f385b20aa252629570cadeca16a9e159e6810c Mon Sep 17 00:00:00 2001
From: Bart Jacobs for RustcObjectLifetimeDefaultParser {
Some(AttributeKind::RustcObjectLifetimeDefault)
}
}
+
+pub(crate) struct RustcSimdMonomorphizeLaneLimitParser;
+
+impl for RustcSimdMonomorphizeLaneLimitParser {
+ const PATH: &[Symbol] = &[sym::rustc_simd_monomorphize_lane_limit];
+ const ATTRIBUTE_ORDER: AttributeOrder = AttributeOrder::KeepInnermost;
+ const ON_DUPLICATE: OnDuplicate = OnDuplicate::Error;
+ const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Struct)]);
+ const TEMPLATE: AttributeTemplate = template!(NameValueStr: "N");
+
+ fn convert(cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser<'_>) -> Option
{# #} + Note: Encountered an error during type layout; {#+ #} + the vector type had zero elements or too many elements. {# #} +
{% endmatch %} {# #} diff --git a/tests/ui/simd/auxiliary/simd-lane-limit.rs b/tests/ui/simd/auxiliary/simd-lane-limit.rs new file mode 100644 index 00000000000..dde6b880c62 --- /dev/null +++ b/tests/ui/simd/auxiliary/simd-lane-limit.rs @@ -0,0 +1,5 @@ +#![feature(rustc_attrs, repr_simd)] + +#[repr(simd, packed)] +#[rustc_simd_monomorphize_lane_limit = "8"] +pub struct Simd&[[SocketAddr]]
: all [`SocketAddr`] values in the slice will be used.
+///
/// This trait allows constructing network objects like [`TcpStream`] or
/// [`UdpSocket`] easily with values of various types for the bind/connection
/// address. It is needed because sometimes one type is more appropriate than
From fe440ec934995e499360dc05ae485f1ccbd0e694 Mon Sep 17 00:00:00 2001
From: Josh Stone