Files
rust/tests/debuginfo
Jonathan BrouwerandGitHub 3a29576be2 Rollup merge of #153238 - shua:lldb-rcstr, r=davidtwco
debuginfo: slices are DW_TAG_array_type's

Rust debuginfo for unsized structs with embedded slice types is lacking, and it makes it difficult for debuggers to correctly print types like `Rc<str>` (eg rust-lang/rust#114195). Specifically, these three structs would have essentially the same debug info (modulo some names):
```rust
struct Foo { a: u32, s: str } // unsized
struct Bar { a: u32, s: [u8] } // unsized
struct Baz { a: u32, s: u8 }
```

This changes how the compiler generates debuginfo in this case, and I used existing compilers (gcc, clang) handling of C flexible member arrays as a reference.
2026-06-12 20:40:46 +02:00
..
2026-04-02 09:44:38 -05:00
2024-08-18 16:58:26 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 16:58:26 -04:00
2026-06-01 00:57:56 -05:00
2025-11-29 15:59:11 +01:00
2026-04-02 09:44:38 -05:00
2026-06-01 00:57:56 -05:00