-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Apply track_caller to closure on expect_non_local()
#96894
Conversation
(Will fix the CI failure after discussing a preferred way) |
Using However, something is broken in feature gating of |
Hmm, I'm afraid that I'm not familiar with it. At least, looking at #87064 and related code, feature gating is fine. We use |
cc @Aaron1011 |
This looks like a broader issue - the For now, I think you could just add |
👍, how about @petrochenkov? |
By the way, is there an issue tracking that weird behavior? |
cba1cf0
to
99d7cc0
Compare
Added the feature attribute to librustdoc as suggested, @petrochenkov could you take a look? |
Blocked on #97214. |
99d7cc0
to
c7db4b0
Compare
Thanks! |
📌 Commit c7db4b0 has been approved by |
The merge queue doesn't have this PR, let me close/reopen to fix it... |
Rollup of 6 pull requests Successful merges: - rust-lang#96894 (Apply track_caller to closure on `expect_non_local()`) - rust-lang#97023 (Diagnose anonymous lifetimes errors more uniformly between async and regular fns) - rust-lang#97397 (Stabilize `box_into_pin`) - rust-lang#97587 (Migrate more diagnostics to use the `#[derive(SessionDiagnostic)]`) - rust-lang#97603 (Arc make_mut doc comment spelling correction.) - rust-lang#97635 (Fix file metadata documentation for Windows) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @petrochenkov
Alternatively we could remove the closure by replicating the same logic of
map_id()
. I'm happy to switch to it if you'd like.