Skip to content

Add f16 summary provider for PDB debug info - #161721

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

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Walnut356:f16_msvc

Conversation

@Walnut356

Copy link
Copy Markdown
Contributor

f16 doesn't have a proper node in the PDB format, so it ends up output as a struct with a bits field. This change adds a summary provider that casts to a clang half type and retrieves the summary from that. Neither of these operations can fail since half is built-in as far as clang/lldb are concerned.

Fixes tests\debuginfo\borrowed-basic.rs and tests\debuginfo\reference-debuginfo.rs, which currently fail on windows-msvc

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 25, 2026
@rustbot

rustbot commented Aug 25, 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

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup

Is half builtin on all supported versions of clang/lldb from our perspective?

@rust-bors

rust-bors Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 78566e1 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 30, 2026
@Walnut356

Copy link
Copy Markdown
Contributor Author

Yup, iirc it was added like 14 years ago

rust-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
Rollup of 3 pull requests

Successful merges:

 - #161603 (Add llubi to llvm-tools)
 - #161831 (Remove experimental `--env-set` option)
 - #161721 (Add f16 summary provider for PDB debug info)
@rust-bors
rust-bors Bot merged commit bf66970 into rust-lang:main Aug 31, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Aug 31, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 31, 2026
Rollup merge of #161721 - Walnut356:f16_msvc, r=Mark-Simulacrum

Add f16 summary provider for PDB debug info

`f16`  doesn't have a proper node in the PDB format, so it ends up output as a struct with a `bits` field. This change adds a summary provider that casts to a clang `half` type and retrieves the summary from that. Neither of these operations can fail since `half` is built-in as far as clang/lldb are concerned.

Fixes `tests\debuginfo\borrowed-basic.rs` and `tests\debuginfo\reference-debuginfo.rs`, which [currently fail on `windows-msvc`](#161657)
@Walnut356
Walnut356 deleted the f16_msvc branch September 1, 2026 06:37
asukaminato0721 pushed a commit to asukaminato0721/rust-analyzer that referenced this pull request Sep 2, 2026
Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#161603 (Add llubi to llvm-tools)
 - rust-lang/rust#161831 (Remove experimental `--env-set` option)
 - rust-lang/rust#161721 (Add f16 summary provider for PDB debug info)
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants