about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/array-not-vector.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-28 05:20:19 +0100
committerGitHub <noreply@github.com>2023-01-28 05:20:19 +0100
commitc89bb159f6d1e9049f9c42a3eb8d0f355524f029 (patch)
tree1e9ed15684db09f0ecf9f80562834014378a4c4c /tests/ui/array-slice-vec/array-not-vector.rs
parentab769a0bac7e20549caa451742331674c940eed5 (diff)
parente5995e61687673dca684914b774d1456160f1891 (diff)
downloadrust-c89bb159f6d1e9049f9c42a3eb8d0f355524f029.tar.gz
rust-c89bb159f6d1e9049f9c42a3eb8d0f355524f029.zip
Rollup merge of #107373 - michaelwoerister:dont-merge-vtables-when-debuginfo, r=WaffleLapkin
Don't merge vtables when full debuginfo is enabled.

This PR makes the compiler not emit the `unnamed_addr` attribute for vtables when full debuginfo is enabled, so that they don't get merged even if they have the same contents. This allows debuggers to more reliably map from a dyn pointer to the self-type of a trait object by looking at the vtable's debuginfo.

The PR only changes the behavior of the LLVM backend as other backends don't emit vtable debuginfo (as far as I can tell).

The performance impact of this change should be small as [measured](https://github.com/rust-lang/rust/pull/103514#issuecomment-1290833854) in a previous PR.
Diffstat (limited to 'tests/ui/array-slice-vec/array-not-vector.rs')
0 files changed, 0 insertions, 0 deletions