-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
forbid #[track_caller]
on main
#75130
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
r=me with the error message tweaked. |
@bors r=ecstatic-morse |
📌 Commit 1af7572ac25b68b4f475246166162246adc78089 has been approved by |
⌛ Testing commit 1af7572ac25b68b4f475246166162246adc78089 with merge 8cde14e50d17ffe51b486a20f0f1f91eb236ab07... |
@bors r- The |
come on 😢 I blame vs code here Thanks for noticing @bors r=ecstatic-morse I should look into automatically preventing this, considering how often this has happend to me |
📌 Commit 9127e27 has been approved by |
⌛ Testing commit 9127e27 with merge 30e5c68e6961f49f14deb5e53d3d3a5d8e500842... |
💔 Test failed - checks-actions |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The failure is spurious: rust-lang/cargo#8517 |
forbid `#[track_caller]` on main fixes rust-lang#75125 cc @anp
☀️ Test successful - checks-actions, checks-azure |
@lcnr Would you mind adding a small note to https://github.com/rust-lang/reference/blob/master/src/attributes/codegen.md#the-track_caller-attribute about this restriction? |
not exactly sure how to best formulate this but opened rust-lang/reference#872 for now |
Adding missing |
…ulacrum [beta] backports * Forbid non-derefable types explicitly in unsizing casts rust-lang#75136 * forbid `#[track_caller]` on main rust-lang#75130 * Fix #[track_caller] shims for trait objects. rust-lang#74784 * rustc_target: Add a target spec option for disabling `--eh-frame-hdr` rust-lang#74631 * Disable Azure Pipelines except for macOS rust-lang#74620 * Upload builds from GHA instead of Azure Pipelines rust-lang#74565 * Add the aarch64-apple-darwin target rust-lang#74541 * Use `ReEmpty(U0)` as the implicit region bound in typeck rust-lang#74509 * rustbuild: drop tool::should_install rust-lang#74457 * lint: use `transparent_newtype_field` to avoid ICE rust-lang#74340 * Don't panic if the lhs of a div by zero is not statically known rust-lang#74221 * improper_ctypes_definitions: allow `Box` rust-lang#74448 * typeck: check for infer before type impls trait rust-lang#73965
fixes #75125
cc @anp