-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Provide a macro like std::file!() just for the function name #35651
Comments
This requires an RFC, as there's a fair bit of ambiguity as to what the "name" of a function might be. |
Whatever name is generated for debug symbols might be a start. When looking in gdb, those seem unambiguous after monomorphisation etc. |
Yes, new macros need to go through the RFC process, even for relatively trivial ones. See rust-lang/rfcs#1653 as an example. @sdroege please file one if you're interested in pursuing this! |
Thanks, I'll look into that! |
Having such a macro would be useful for adding context information to logs.
The text was updated successfully, but these errors were encountered: