Skip to content

Use the fn_span when emitting function calls for better debug info. #141372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khuey
Copy link
Contributor

@khuey khuey commented May 21, 2025

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? @jieyouxu

@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 May 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 21, 2025

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@khuey
Copy link
Contributor Author

khuey commented May 21, 2025

@rustbot label A-debuginfo

@rustbot rustbot added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label May 21, 2025
@rust-log-analyzer

This comment has been minimized.

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Nice! I left a test suggestion.

@jieyouxu
Copy link
Member

@bors try

@jieyouxu
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 22, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 22, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@bors
Copy link
Collaborator

bors commented May 22, 2025

⌛ Trying commit 4a65590 with merge a794f94...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented May 22, 2025

💔 Test failed - checks-actions

@jieyouxu
Copy link
Member

@bors try

@bors
Copy link
Collaborator

bors commented May 22, 2025

⌛ Trying commit 99355ff with merge 6da616f...

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@jieyouxu
Copy link
Member

@bors delegate+ (r=me if try job comes back green)

@bors
Copy link
Collaborator

bors commented May 22, 2025

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

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

@jieyouxu
Copy link
Member

@bors rollup=iffy (debuginfo)

@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member

I'll look at the regex tmrw.

@jieyouxu jieyouxu added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 22, 2025
@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

Oh, doh, the line number has to be adjusted now of course.

@jieyouxu
Copy link
Member

jieyouxu commented May 22, 2025

(You should be able to run try jobs yourself on this PR, since I delegated r+)

@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented May 22, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 22, 2025
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels May 22, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 22, 2025

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@bors
Copy link
Collaborator

bors commented May 22, 2025

⌛ Trying commit b897ad6 with merge d232f4fc1a51c1097a65212e11b5c4ff6e121d5f...

@khuey khuey force-pushed the ir_call_dbg_loc branch from b897ad6 to bcaa604 Compare May 22, 2025 16:39
@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

@bors try

@bors
Copy link
Collaborator

bors commented May 22, 2025

⌛ Trying commit bcaa604 with merge 8abdf02...

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented May 22, 2025

💔 Test failed - checks-actions

@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request May 22, 2025
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1

r? `@jieyouxu`
@bors
Copy link
Collaborator

bors commented May 22, 2025

⌛ Trying commit 9a619b6 with merge daf4b94486ce28a4df5f700a22dc9d8ef97a4eeb...

@bors
Copy link
Collaborator

bors commented May 22, 2025

☀️ Try build successful - checks-actions
Build commit: daf4b94 (daf4b94486ce28a4df5f700a22dc9d8ef97a4eeb)

@khuey khuey force-pushed the ir_call_dbg_loc branch from 9a619b6 to caf665e Compare May 22, 2025 21:05
@khuey
Copy link
Contributor Author

khuey commented May 22, 2025

@bors r=@jieyouxu

@bors
Copy link
Collaborator

bors commented May 22, 2025

📌 Commit caf665e has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 22, 2025
This especially improves the developer experience for long chains
of function calls that span multiple lines, which is common with
builder patterns, chains of iterator/future combinators, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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