Skip to content

Force u8/i8 numeric formatting on LLDB - #162358

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:u8_i8_fmt
Sep 6, 2026
Merged

Force u8/i8 numeric formatting on LLDB#162358
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:u8_i8_fmt

Conversation

@Walnut356

@Walnut356 Walnut356 commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer).

I disabled checking Rc<str> in strings-and-strs.rs, as this patch caused it to fail on windows-gnu and the fix is the wide pointer visualizer. Technically, even on linux-gnu the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the str data, but that's obviously not something we should be relying on.

Also fixes tests\debuginfo\borrowed-unique-basic.rs on windows-msvc as part of #161657 (comment)

r? @Kobzol, @jieyouxu


try-job: aarch64-apple-1
try-job: x86_64-mingw-1

@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 Sep 6, 2026
@rustbot

rustbot commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Kobzol is not on the review rotation at the moment.
They may take a while to respond.

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks much more sensible.
r? me

View changes since this review

@rustbot rustbot assigned jieyouxu and unassigned Kobzol Sep 6, 2026
@jieyouxu

jieyouxu commented Sep 6, 2026

Copy link
Copy Markdown
Member

You can r=me if try jobs come back green.
@bors rollup=iffy note="debuginfo tests"
@bors delegate+
@bors try

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

✌️ @Walnut356, you can now approve this pull request!

If @jieyouxu told you to "r=me" after making some further change, then please make that change and post @bors r=jieyouxu.

View changes since this delegation.

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
Force u8/i8 numeric formatting on LLDB

try-job: aarch64-apple-1
try-job: x86_64-mingw-1
@jieyouxu

This comment was marked as off-topic.

@rust-bors

This comment was marked as off-topic.

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 143c4cb (143c4cbc82e846c5edd37c1050d022551fcefe06)
Base parent: 46a266b (46a266b9fb0fb75e05fa4c9132f7355fcb62d4a4)

@jieyouxu

jieyouxu commented Sep 6, 2026

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit cc3786d has been approved by jieyouxu

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 Sep 6, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 6, 2026
Force u8/i8 numeric formatting on LLDB

Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer).

I disabled checking `Rc<str>` in `strings-and-strs.rs`, as this patch caused it to fail on `windows-gnu` and the fix is the wide pointer visualizer. Technically, even on `linux-gnu` the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the `str` data, but that's obviously not something we should be relying on.

Also fixes `tests\debuginfo\borrowed-unique-basic.rs` on `windows-msvc` as part of rust-lang#161657 (comment)

r? @Kobzol, @jieyouxu

---

try-job: aarch64-apple-1
try-job: x86_64-mingw-1
rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #162358 (Force u8/i8 numeric formatting on LLDB)
 - #162359 (Use `lldb.eTypeOptionHideChildren` for msvc tuples)
 - #162364 (Use `#[repr(C)]` on debuginfo test structs)
 - #162215 (remove stale/duplicate tests)
 - #162335 (Add several new LLDB feature flags)
 - #162341 (add regression test for packus_epi16 issue)
 - #162374 (Make `VaArgSafe` dyn-incompatible)
@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

⌛ Testing commit cc3786d with merge 0914295...

Workflow: https://github.com/rust-lang/rust/actions/runs/34047443657

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
Force u8/i8 numeric formatting on LLDB



Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer).

I disabled checking `Rc<str>` in `strings-and-strs.rs`, as this patch caused it to fail on `windows-gnu` and the fix is the wide pointer visualizer. Technically, even on `linux-gnu` the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the `str` data, but that's obviously not something we should be relying on.

Also fixes `tests\debuginfo\borrowed-unique-basic.rs` on `windows-msvc` as part of #161657 (comment)

r? @Kobzol, @jieyouxu 

---

try-job: aarch64-apple-1
try-job: x86_64-mingw-1
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try jobs=x86_64-mingw-1,x86_64-msvc-1

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

⌛ Trying commit cc3786d with merge 3519084

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/34051480535

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
Force u8/i8 numeric formatting on LLDB


try-job: x86_64-mingw-1
try-job: x86_64-msvc-1
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try cancel

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Try build cancelled. Cancelled workflows:

Hint: if you want to run another try build, you do not need to manually cancel the previous one. Just run @bors try and bors will cancel the previous build automatically.

@JonathanBrouwer

JonathanBrouwer commented Sep 6, 2026

Copy link
Copy Markdown
Member

@bors yield
One of the jobs from the autojobs is still queued, github?
Yielding to enclosing rollup

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Auto build was cancelled. Cancelled workflows:

The next pull request likely to be tested is #162382.

rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #162358 (Force u8/i8 numeric formatting on LLDB)
 - #162359 (Use `lldb.eTypeOptionHideChildren` for msvc tuples)
 - #162364 (Use `#[repr(C)]` on debuginfo test structs)
 - #162215 (remove stale/duplicate tests)
 - #162335 (Add several new LLDB feature flags)
@rust-bors
rust-bors Bot merged commit 45adcad into rust-lang:main Sep 6, 2026
13 of 15 checks passed
rust-bors Bot pushed a commit that referenced this pull request Sep 6, 2026
Rollup merge of #162358 - Walnut356:u8_i8_fmt, r=jieyouxu

Force u8/i8 numeric formatting on LLDB

Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer).

I disabled checking `Rc<str>` in `strings-and-strs.rs`, as this patch caused it to fail on `windows-gnu` and the fix is the wide pointer visualizer. Technically, even on `linux-gnu` the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the `str` data, but that's obviously not something we should be relying on.

Also fixes `tests\debuginfo\borrowed-unique-basic.rs` on `windows-msvc` as part of #161657 (comment)

r? @Kobzol, @jieyouxu

---

try-job: aarch64-apple-1
try-job: x86_64-mingw-1
@rustbot rustbot added this to the 1.100.0 milestone Sep 6, 2026
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.

5 participants