-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
#[track_caller] on closures? #74042
Copy link
Copy link
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.F-track_caller`#![feature(track_caller)]``#![feature(track_caller)]`
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.F-track_caller`#![feature(track_caller)]``#![feature(track_caller)]`
Type
Fields
Give feedbackNo fields configured for issues without a type.
One problem I have is that it's not possible to put
#[track_caller]on closures, this is really useful whenthread_localis involved because then there's a lot of logic in closures that you might want to propagateie
Originally posted by @elichai in #47809 (comment)