Skip to content

Apply str debugger visualizer to *const str, *mut str and Box<str> - #159834

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:ptr_str
Aug 9, 2026
Merged

Apply str debugger visualizer to *const str, *mut str and Box<str>#159834
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:ptr_str

Conversation

@Walnut356

Copy link
Copy Markdown
Contributor

Fairly straightforward. Note that the MSVC changes very likely aren't exercised by CI. My GSoC project is actively working on fixing that, but in the meantime i can personally verify that it works (note that the ref$<str$> * type name confirms this is MSVC):

image

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 24, 2026
@rustbot

rustbot commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Mark-Simulacrum

@bjorn3

bjorn3 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Does GDB also need to change or did it already do this?

@fbstj

fbstj commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

are the missing closing " on the &mut str and *mut str in that picture preexisting?

@Walnut356

Copy link
Copy Markdown
Contributor Author

Does GDB also need to change or did it already do this?

I think it does need the change, but the last time i tried to change more than 1 debugger at once i got told to split the PRs.

are the missing closing " on the &mut str and *mut str in that picture preexisting?

It's a quirk of how vscode displays multiline strings. Technically avoidable by using python to escape the strings, but that can make them harder to read in non-vscode contexts.

image

@jieyouxu jieyouxu self-assigned this Jul 26, 2026
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

(@jieyouxu I figure we can revert if you have specific concerns, not sure why you assigned yourself)

@rust-bors

rust-bors Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 69edf45 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 8, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 8, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #156935 (Introduce a `PinSafePointer` trait that generalizes `PinCoerceUnsized`)
 - #159834 (Apply str debugger visualizer to `*const str`, `*mut str` and `Box<str>`)
 - #160663 (Suggest add async for function sig with return expr in body)
 - #160732 (Optimize slice::contains for one-byte BytewiseEq types)
 - #157944 (Make `char::is_default_ignorable` unstably public)
 - #158835 (rustc_passes: lint unused `#[path]` attributes on inline modules)
 - #160754 (Rename more diagnostic files to `diagnostics.rs`)
 - #160755 (Merge `rustc_lint/lints.rs` into `diagnostics.rs`)
 - #160757 (Merge `rustc_attr_parsing/session_diagnostics.rs` into `diagnostics.rs`)
@rust-bors
rust-bors Bot merged commit 103f5d6 into rust-lang:main Aug 9, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 9, 2026
rust-timer added a commit that referenced this pull request Aug 9, 2026
Rollup merge of #159834 - Walnut356:ptr_str, r=Mark-Simulacrum

Apply str debugger visualizer to `*const str`, `*mut str` and `Box<str>`

Fairly straightforward. Note that the MSVC changes very likely aren't exercised by CI. My GSoC project is actively working on fixing that, but in the meantime i can personally verify that it works (note that the `ref$<str$> *` type name confirms this is MSVC):

<img width="318" height="138" alt="image" src="https://github.com/user-attachments/assets/fd868f16-d9a5-438a-a155-a429771bf525" />
@jieyouxu

jieyouxu commented Aug 9, 2026

Copy link
Copy Markdown
Member

I figure we can revert if you have specific concerns, not sure why you assigned yourself

(I was planning to take a look at this one but haven't gotten around to it, didn't have specific concerns)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants