dtolnay / linkme

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

Disambiguate distributed slices with the same name #3

Closed dtolnay closed 2 years ago

dtolnay commented 5 years ago

The only unique identifier in the link section name currently is the name of the static. Multiple crates could make distributed slices with the same name. We should do one of:

mmastrac commented 5 years ago

Could TypeId somehow be used for this? It's const in more recent builds.

luser commented 4 years ago

In the interest of "principle of least surprise" I would suggest: