diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-08 12:52:57 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-08 12:52:57 +1000 |
| commit | 432a4f27fe5f1703af0277cd6b2e855ec47996f4 (patch) | |
| tree | eaa6e666eed89ddcb7c81b70f18b99fe2320d9cb /tests/rustdoc-js-std/reference-shrink.js | |
| parent | e4b2fad8c9c8e99cb1c68c79441dc698c3435573 (diff) | |
| parent | 6c02653c4a564a2a1509dc55bdec2e5b8f02bdd9 (diff) | |
| download | rust-432a4f27fe5f1703af0277cd6b2e855ec47996f4.tar.gz rust-432a4f27fe5f1703af0277cd6b2e855ec47996f4.zip | |
Rollup merge of #145051 - bjorn3:prevent_linkage_symbol_name_collision, r=petrochenkov
Prevent name collisions with internal implementation details The implementation of the linkage attribute inside extern blocks defines symbols starting with _rust_extern_with_linkage_. If someone tries to also define this symbol you will get a symbol conflict or even an ICE. By adding an unpredictable component to the symbol name, this becomes less of an issue. Spawned from the discussion at [#t-compiler > About static variables `_rust_extern_with_linkage_*`](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/About.20static.20variables.20.60_rust_extern_with_linkage_*.60) cc `@ywxt` Fixes https://github.com/rust-lang/rust/issues/144940
Diffstat (limited to 'tests/rustdoc-js-std/reference-shrink.js')
0 files changed, 0 insertions, 0 deletions
