-
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
Should format_args_nl! be #[doc(hidden)] ? #93904
Comments
It seems that |
@rustbot claim |
add link to format_args! when mention it in docs close rust-lang#93904
Was it intentional, though? The PR description says
But that does not apply to #[unstable(
feature = "format_args_nl",
issue = "none",
reason = "`format_args_nl` is only for internal \
language use and is subject to change"
)] |
After some discussion in that PR, it was deemed that a macro being I really don't have a strong opinion here myself, so lemme wash my hands 😄, but:
🤷 |
“On its own” is important here.
I think that depending on its category each item with |
Yeah, I share the feeling: AFAIC, feel free to go and make it |
One potential argument against hiding the macro from the docs is that it shows up in the compiler errors originating from the use of format strings (i.e. "note: this error originates in the macro |
This is being stabilized in #97658, so I think the answer is pretty clearly "no" now (but the discussion here is interesting for other perma-unstable macros). |
Initial title: format_args_nl! should link to format_args! where they mention it
https://doc.rust-lang.org/nightly/std/macro.format_args_nl.html currently contains:
It would be nicer as:
… although I also find #87410 which made it
#[doc(hidden)]
. It looks like that was undone at some point?The text was updated successfully, but these errors were encountered: