dtolnay / linkme

Safe cross-platform linker shenanigans
Apache License 2.0
626 stars 42 forks source link

Further improve slice typecheck #84

Closed CAD97 closed 6 months ago

CAD97 commented 6 months ago

Follow-up to #83. There's two minor motivations to the change here:

Also removes linkme::__private::value, as that helper function is no longer used.

The chance that a coercion could break the check done by #83 is reasonably low and would be caught on CI, and the error improvement is debatable at best, so it's a judgement call on whether these changes should be merged.