-
Notifications
You must be signed in to change notification settings - Fork 734
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
attributes: force instrumented function to be FnOnce
#2847
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for bikeshedding, but I think it would be good to change the PR title so that it's clear what happens here. The name is usually also used as the commit title so it would save the maintainers some work of writing the commit themselves.
FnOnce
@mladedav Thank you for your suggestion. I changed the PR title (just copied from yours). |
Motivation
close #2796
Solution
Bind a non-Copy value in the closure.