Matthias Krüger
48cf90f337
Rollup merge of #152915 - CrooseGit:dev/reucru01/error-illegal-sv-init, r=mati865
...
Error on attempt to construct scalable vector type
If you attempt to construct a scalable vector type rust will ICE.
E.g.:
```rust
#[rustc_scalable_vector(4)]
#[allow(non_camel_case_types)]
struct svint32_t(i32);
fn main() {
let foo = svint32_t(1);
// This will ICE
}
```
This PR adds a check that will emit an error if you attempt to use a SV constructor and a test to ensure it works.
2026-02-21 13:03:29 +01:00
..
2026-02-20 20:22:31 -08:00
2026-02-19 10:56:39 +01:00
2026-02-20 09:50:16 +01:00
2026-02-18 20:49:50 +00:00
2026-02-20 09:50:16 +01:00
2026-02-20 09:50:16 +01:00
2026-02-19 04:18:20 +00:00
2026-02-18 22:19:45 +01:00
2026-02-20 22:00:56 +01:00
2026-02-21 13:03:28 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 10:58:58 +08:00
2026-02-20 22:00:57 +01:00
2026-02-20 09:50:16 +01:00
2026-02-18 20:49:50 +00:00
2026-02-20 10:35:52 +01:00
2026-02-20 09:50:16 +01:00
2026-02-21 13:03:29 +01:00
2026-02-20 13:24:57 +01:00
2026-02-20 22:00:57 +01:00
2026-02-20 10:35:52 +01:00
2026-02-20 12:19:41 +00:00
2026-02-20 13:24:58 +01:00
2026-02-20 13:24:55 +01:00
2026-02-20 13:24:57 +01:00
2026-02-20 22:00:54 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 22:00:54 +01:00
2026-02-20 22:00:57 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 17:59:47 +03:30
2026-02-20 17:59:47 +03:30
2026-02-19 09:05:39 +11:00
2026-02-20 22:00:54 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 22:00:57 +01:00
2026-02-19 19:27:33 -06:00
2026-02-20 09:50:16 +01:00
2026-02-18 22:19:46 +01:00
2026-02-20 13:24:55 +01:00
2026-02-20 09:50:16 +01:00
2026-02-21 00:43:29 +08:00