Skip to content
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

Backport: Switch #[track_caller] back to a no-op unless feature gate is enabled #106188

Merged

Conversation

bryangarza
Copy link
Contributor

Backport of #104741

r? @compiler-errors since you reviewed the original PR
requested by @Mark-Simulacrum #104741 (comment)

This patch fixes a regression, in which `#[track_caller]`, which was
previously a no-op, was changed to actually turn on the behavior. This
should instead only happen behind the `closure_track_caller` feature
gate.

Also, add a warning for the user to understand how their code will
compile depending on the feature gate being turned on or not.

Fixes rust-lang#104588
@rustbot
Copy link
Collaborator

rustbot commented Dec 27, 2022

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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 Dec 27, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 27, 2022

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

@compiler-errors
Copy link
Member

backport looks totally as expected -- r=me, idk if it needs an approval from the release team or something since it's beta

r? @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

@bors r=compiler-errors rollup=never

No, so long as beta backport is approved this is enough.

@bors
Copy link
Contributor

bors commented Dec 27, 2022

📌 Commit 8b76871 has been approved by compiler-errors

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-review Status: Awaiting review from the assignee but also interested parties. labels Dec 27, 2022
@bors
Copy link
Contributor

bors commented Dec 28, 2022

⌛ Testing commit 8b76871 with merge 6711f7a...

@bors
Copy link
Contributor

bors commented Dec 28, 2022

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 6711f7a to beta...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 28, 2022
@bors bors merged commit 6711f7a into rust-lang:beta Dec 28, 2022
@rustbot rustbot added this to the 1.67.0 milestone Dec 28, 2022
@bryangarza bryangarza deleted the bug-104588-async-track-caller_beta-backport branch December 28, 2022 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic merged-by-bors This PR was explicitly merged by bors. 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