Skip to content

Adjust unsized.rs debuginfo test expected output for cdb 10.0.28000.2957 - #165815

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix-unsized
Nov 11, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jieyouxu:jieyouxu/fix-unsized

Conversation

@jieyouxu

Copy link
Copy Markdown
Member

This was a cdb test that was failing locally when I updated Windows SDK to 10.0.28000.2957 (and thus cdb and WinDbg).

Currently our Windows CI seems to use Windows SDKs around 10.0.26100.*. See example run:

Seems that for whatever reason eventual visualizations for c and _box changed between these cdb (WinDbg) versions. For

let c: &Foo<dyn std::fmt::Debug> = &Foo { value: 7i32 };

the 10.0.26100.* series seem to output e.g.

//@ cdb-check:c                [Type: ref$<unsized::Foo<dyn$<core::fmt::Debug> > >]
//@ cdb-check:    [+0x000] pointer          : 0x[...] [Type: unsized::Foo<dyn$<core::fmt::Debug> > *]
//@ cdb-check:    [...] vtable           : 0x[...] [Type: unsigned [...]int[...] (*)[4]]

but 10.0.28000.2957 output changed to a single line e.g.

              c                : 7 [Type: i32 (derived from ref$<unsized::Foo<dyn$<core::fmt::Debug> > >)]

So likely one of:

  • Default visualizers got updated
  • WinDbg internals changed
  • cdb <-> WinDbg engine interactions changed

I cannot find cdb/WinDbg changelogs anywhere for these specific Windows SDK versions, so the best I can do is use 10.0.28000.2957 output as new expected output and gate this test on a minimum cdb version of 10.0.28000.2957.

This of course means that, before our GHA windows runner images update to a Windows SDK that's at least 10.0.28000.2957 (and thus cdb since they're distributed and versioned together), this test will not run in CI.

This was a cdb test that was failing locally when I updated Windows SDK
to 10.0.28000.2957 (and thus cdb and WinDbg).

Seems that for whatever reason eventual visualizations for `c` and
`_box` changed between these cdb (WinDbg) versions.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 11, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Nov 11, 2026
@rustbot

rustbot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

r? @dingxiangfei2009

rustbot has assigned @dingxiangfei2009.
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: compiler
  • compiler expanded to 79 candidates
  • Random selection from 19 candidates

@jieyouxu jieyouxu added O-windows-msvc Toolchain: MSVC, Operating system: Windows A-debuggers-cdb Area: cdb labels Nov 11, 2026
@jieyouxu

Copy link
Copy Markdown
Member Author

Forgot to mention that, yes, our CI currently still uses floating Windows SDK and thus floating cdb, therefore yes the tree will become borked when windows CI runners get an runner image that has the 10.0.28000.* SDK (and thus cdb) versions, without updating the expected output beforehand.

@wesleywiser

Copy link
Copy Markdown
Member

Recent WinDbg versions have native support for understanding trait objects and automatically resolves them to their runtime type. Thus, these changes are expected.

@wesleywiser

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 381ba55 has been approved by wesleywiser

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 Nov 11, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 11, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #165805 (Replace `match_span_kind` macro with `SpanKind`)
 - #165746 (std: don't overflow when rounding up huge thread stack sizes on unix)
 - #165807 (Fix 'simga' typo in char.to_lowercase documentation)
 - #165809 (Update to ar_archive_writer 0.5.5)
 - #165812 (Remove `-Z stack-protector=basic`)
 - #165815 (Adjust `unsized.rs` debuginfo test expected output for cdb `10.0.28000.2957`)
@rust-bors
rust-bors Bot merged commit 3f6aad8 into rust-lang:main Nov 11, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 11, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 11, 2026
Rollup merge of #165815 - jieyouxu:jieyouxu/fix-unsized, r=wesleywiser

Adjust `unsized.rs` debuginfo test expected output for cdb `10.0.28000.2957`

This was a cdb test that was failing locally when I updated Windows SDK to `10.0.28000.2957` (and thus cdb and WinDbg).

Currently our Windows CI seems to use Windows SDKs around `10.0.26100.*`. See example run:

- #165808
- => https://github.com/rust-lang/rust/actions/runs/43010199577
- => https://github.com/rust-lang/rust/actions/runs/43010199577/job/130488011527
- => Runner image `windows-2025-vs2026 20261103.298.1`
- => https://github.com/actions/runner-images/blob/win25-vs2026/20261103.298/images/windows/Windows2025-VS2026-Readme.md
- => `10.0.26100.33674`

Seems that for whatever reason eventual visualizations for `c` and `_box` changed between these cdb (WinDbg) versions. For

```rs
let c: &Foo<dyn std::fmt::Debug> = &Foo { value: 7i32 };
```

the `10.0.26100.*` series seem to output e.g.

```
//@ cdb-check:c                [Type: ref$<unsized::Foo<dyn$<core::fmt::Debug> > >]
//@ cdb-check:    [+0x000] pointer          : 0x[...] [Type: unsized::Foo<dyn$<core::fmt::Debug> > *]
//@ cdb-check:    [...] vtable           : 0x[...] [Type: unsigned [...]int[...] (*)[4]]
```

but `10.0.28000.2957` output changed to a single line e.g.

```
              c                : 7 [Type: i32 (derived from ref$<unsized::Foo<dyn$<core::fmt::Debug> > >)]
```

So likely one of:

- Default visualizers got updated
- WinDbg internals changed
- cdb <-> WinDbg engine interactions changed

I cannot find cdb/WinDbg changelogs anywhere for these specific Windows SDK versions, so the best I can do is use `10.0.28000.2957` output as new expected output and gate this test on a minimum cdb version of `10.0.28000.2957`.

This of course means that, before our GHA windows runner images update to a Windows SDK that's at least `10.0.28000.2957` (and thus cdb since they're distributed and versioned together), this test will not run in CI.
@jieyouxu
jieyouxu deleted the jieyouxu/fix-unsized branch November 12, 2026 11:50
yawnbo pushed a commit to yawnbo/rust that referenced this pull request Nov 16, 2026
…nathanBrouwer

Rollup of 6 pull requests

Successful merges:

 - rust-lang#165805 (Replace `match_span_kind` macro with `SpanKind`)
 - rust-lang#165746 (std: don't overflow when rounding up huge thread stack sizes on unix)
 - rust-lang#165807 (Fix 'simga' typo in char.to_lowercase documentation)
 - rust-lang#165809 (Update to ar_archive_writer 0.5.5)
 - rust-lang#165812 (Remove `-Z stack-protector=basic`)
 - rust-lang#165815 (Adjust `unsized.rs` debuginfo test expected output for cdb `10.0.28000.2957`)

codegen: avoid CGU invalidation in path dependent debugger visualizer lookup
mehmettoplu-rs pushed a commit to mehmettoplu-rs/rustc_codegen_gcc that referenced this pull request Nov 22, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#165805 (Replace `match_span_kind` macro with `SpanKind`)
 - rust-lang/rust#165746 (std: don't overflow when rounding up huge thread stack sizes on unix)
 - rust-lang/rust#165807 (Fix 'simga' typo in char.to_lowercase documentation)
 - rust-lang/rust#165809 (Update to ar_archive_writer 0.5.5)
 - rust-lang/rust#165812 (Remove `-Z stack-protector=basic`)
 - rust-lang/rust#165815 (Adjust `unsized.rs` debuginfo test expected output for cdb `10.0.28000.2957`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-debuggers-cdb Area: cdb O-windows-msvc Toolchain: MSVC, Operating system: Windows 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.

4 participants