Jonathan Brouwer
2a91880bde
Rollup merge of #162364 - Walnut356:debuginfo_repr, r=jieyouxu
...
Use `#[repr(C)]` on debuginfo test structs
This fixes a couple of issues.
* LLDB reading PDB debug info re-orders fields and displays them in offset order instead of source-order like DWARF. While this has been [fixed upstream](https://github.com/llvm/llvm-project/pull/218731 ), it'll be quite a while before it's reflected in CI runners and such
* For all targets, the structs were often written (and named) under the assumption that they would have specific layouts. Nothing was actually enforcing those assumed layouts, so very often a type would be named e.g. `HasInternalPadding` but rust would reorder it such that no internal padding existed.
`struct-with-destructor.rs` is still iffy. I'll test it when I get home and can update my main PC's LLDB.
On my remote PC (lldb 22.1.2) it didn't fix the test, and it looked like the variable was straight up being read incorrectly:
```
// expected:
(struct_with_destructor::NestedOuter) nested = {a:{a:{x:7890, y:9870}}}
// got:
(struct_with_destructor::NestedOuter) nested = {a:{a:{y:1378684509906, x:9870}}
```
On my laptop when manually inspecting it (CodeLLDB which uses 22.1.8 under the hood) everything looked fine, so it might have been a bug that LLDB patched.
Part of the MSVC test fixes for https://github.com/rust-lang/rust/issues/161657
r? @Kobzol, @jieyouxu
---
test-jobs: aarch64-apple-1
test-jobs: aarch64-msvc-1
test-jobs: x86_64-msvc-1
test-jobs: x86_64-mingw-1
2026-09-06 20:23:11 +02:00
..
2025-08-01 20:04:59 +00:00
2026-09-06 03:09:37 -05:00
2026-02-02 18:13:43 -08:00
2026-08-23 00:57:14 -05:00
2026-02-09 07:59:24 -08:00
2026-09-06 05:28:04 -05:00
2026-06-01 01:51:55 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-06 03:09:37 -05:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -05:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2026-04-02 09:44:38 -05:00
2026-09-06 05:28:04 -05:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -05:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-08-01 20:04:59 +00:00
2025-08-01 20:04:59 +00:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-04-02 09:44:38 -05:00
2025-10-13 15:20:49 +02:00
2026-08-25 08:03:22 +00:00
2026-09-06 05:28:04 -05:00
2026-08-25 08:03:22 +00:00
2025-11-25 06:13:45 +01:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2026-07-17 00:17:09 +08:00
2026-04-23 12:13:19 +10:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-07-16 21:10:15 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-03-16 18:39:40 +01:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-05-03 10:59:52 +02:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2026-09-06 05:28:04 -05:00
2026-06-01 00:57:56 -05:00
2026-08-11 14:13:19 +08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-03-02 11:57:03 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-06-16 23:04:33 +00:00
2026-09-06 03:09:37 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-06 05:28:04 -05:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-09-06 03:09:37 -05:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2026-02-02 18:13:43 -08:00
2026-09-06 05:28:04 -05:00
2025-11-25 06:13:45 +01:00
2025-11-29 15:59:11 +01:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01:00
2026-04-02 09:44:38 -05:00
2026-06-01 00:57:56 -05:00
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2026-09-06 03:09:37 -05:00
2026-04-02 09:44:38 -05:00
2025-11-25 06:13:45 +01:00
2025-08-01 20:04:59 +00:00
2026-02-23 23:32:56 +08:00
2025-11-25 06:13:45 +01:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2026-09-06 05:28:04 -05:00
2026-06-01 00:57:56 -05:00
2026-07-16 21:10:15 -05:00