Jonathan Brouwer and GitHub
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
..
2025-08-01 20:04:59 +00:00
2026-02-02 18:13:43 -08:00
2026-02-09 07:59:24 -08:00
2026-06-01 00:57:56 -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
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-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-06-01 00:57:56 -05: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
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
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
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-04-02 09:44:38 -05:00
2025-10-13 15:20:49 +02: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
2025-11-25 06:13:45 +01:00
2026-01-14 18:57:17 +08:00
2025-11-25 06:13:45 +01:00
2024-12-04 23:03:44 +01:00
2024-12-04 23:03:44 +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-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
2026-02-02 18:13:43 -08:00
2025-11-25 06:13:45 +01:00
2025-11-25 06:13:45 +01: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
2024-08-18 16:58:26 -04:00
2025-11-25 06:13:45 +01: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
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
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-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
2024-08-18 16:58:26 -04: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-06-01 00:57:56 -05: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
2026-04-02 09:44:38 -05:00
2026-06-06 03:16:59 +08: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
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-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-06-01 00:57:56 -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-05-28 23:29:35 +02:00
2026-02-02 18:13:43 -08:00
2026-06-01 00:57:56 -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
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-06-01 00:57:56 -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-06-01 00:57:56 -05:00
2026-06-01 00:57:56 -05:00
2025-11-25 06:13:45 +01:00