dtolnay / linkme

Safe cross-platform linker shenanigans
Apache License 2.0
646 stars 41 forks source link

Allow valid Rust syntax #75

Closed stepancheg closed 11 months ago

stepancheg commented 11 months ago

Allow this syntax:

#[distributed_slice]
static RES: [Res; 0] = [];

as equivalent to

#[distributed_slice]
static RES: [Res];

so CLion won't complain about syntax it does not understand.

stepancheg commented 11 months ago

Actually, nevermind, this syntax is fine:

#[distributed_slice]
static RES: [Res] = [..];