Skip to content

Preserve track_caller for by-value dyn vtable shims#157967

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kevin-valerio:fix-track-caller-vtable-shim
Jun 18, 2026
Merged

Preserve track_caller for by-value dyn vtable shims#157967
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kevin-valerio:fix-track-caller-vtable-shim

Conversation

@kevin-valerio

Copy link
Copy Markdown
Contributor

Fixes #157964

@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 Jun 16, 2026
@rustbot

rustbot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @folkertdev (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 20 candidates

@folkertdev

Copy link
Copy Markdown
Contributor

This makes sense, the previous behavior was really an ABI mismatch I think. Either way it's only observable with unsized_fn_params.

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

📌 Commit b77dcf4 has been approved by folkertdev

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 Jun 17, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 17, 2026
…ble-shim, r=folkertdev

Preserve track_caller for by-value dyn vtable shims

Fixes rust-lang#157964
rust-bors Bot pushed a commit that referenced this pull request Jun 17, 2026
…uwer

Rollup of 8 pull requests

Successful merges:

 - #157788 (Accumulate multiple -Zsanitizer target modifiers)
 - #158012 (Stabilize `strip_circumfix`)
 - #157810 (Query the trait solver in slow path for `missing_debug_implementations`)
 - #157829 (tests: adapt two tests for LLVM 23 changes)
 - #157917 (Don't suggest adding `in` to a `for` loop that already has one)
 - #157967 (Preserve track_caller for by-value dyn vtable shims)
 - #158019 (delegation: add simple test for incremental compilation)
 - #158023 (Move `UnusedDuplicate` diag struct to `rustc_attr_parsing`)
rust-bors Bot pushed a commit that referenced this pull request Jun 17, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #157788 (Accumulate multiple -Zsanitizer target modifiers)
 - #158012 (Stabilize `strip_circumfix`)
 - #157810 (Query the trait solver in slow path for `missing_debug_implementations`)
 - #157829 (tests: adapt two tests for LLVM 23 changes)
 - #157873 (mips: set llvm_args -mno-check-zero-division for all mips targets)
 - #157886 (Reject extra fields in MGCA struct const arguments)
 - #157917 (Don't suggest adding `in` to a `for` loop that already has one)
 - #157967 (Preserve track_caller for by-value dyn vtable shims)
 - #158019 (delegation: add simple test for incremental compilation)
 - #158023 (Move `UnusedDuplicate` diag struct to `rustc_attr_parsing`)
 - #158029 (Rename `project-stable-mir` to `project-rustc-public`)
 - #158044 (Add more tests for parallel frontend issues)
@rust-bors rust-bors Bot merged commit 61dbfe0 into rust-lang:main Jun 18, 2026
13 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 18, 2026
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #157967 - kevin-valerio:fix-track-caller-vtable-shim, r=folkertdev

Preserve track_caller for by-value dyn vtable shims

Fixes #157964
pull Bot pushed a commit to xtqqczze/rust-lang-miri that referenced this pull request Jun 18, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#157788 (Accumulate multiple -Zsanitizer target modifiers)
 - rust-lang/rust#158012 (Stabilize `strip_circumfix`)
 - rust-lang/rust#157810 (Query the trait solver in slow path for `missing_debug_implementations`)
 - rust-lang/rust#157829 (tests: adapt two tests for LLVM 23 changes)
 - rust-lang/rust#157873 (mips: set llvm_args -mno-check-zero-division for all mips targets)
 - rust-lang/rust#157886 (Reject extra fields in MGCA struct const arguments)
 - rust-lang/rust#157917 (Don't suggest adding `in` to a `for` loop that already has one)
 - rust-lang/rust#157967 (Preserve track_caller for by-value dyn vtable shims)
 - rust-lang/rust#158019 (delegation: add simple test for incremental compilation)
 - rust-lang/rust#158023 (Move `UnusedDuplicate` diag struct to `rustc_attr_parsing`)
 - rust-lang/rust#158029 (Rename `project-stable-mir` to `project-rustc-public`)
 - rust-lang/rust#158044 (Add more tests for parallel frontend issues)
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.

dyn Trait by-value dispatch loses the #[track_caller] caller location

3 participants