Documentation for variadics#15387
Conversation
|
@bash do you know why this isn't working? I added the marker attribute but the documentation doesn't have the new look. |
|
@BenjaminBrienen What command did you use to build the docs? There's some |
|
Btw |
Yeah I'm getting an error when attempting to build locally: |
|
@alice-i-cecile I'm ready for this to be reviewed again
|
tautropfli
left a comment
There was a problem hiding this comment.
The latest commit still fails for me with with various error: #[doc(fake_variadic)] must be used on the first of a set of tuple or fn pointer trait impls with varying aritys.
I'm using the latest nightly (2024-09-24) and the following command to build: RUSTFLAGS='--cfg docsrs_dep' RUSTDOCFLAGS='--cfg=docsrs' cargo +nightly doc
Maybe the command that you used didn't correctly export the env vars?
set RUSTFLAGS='--cfg docsrs_dep' && set RUSTDOCFLAGS='--cfg=docsrs' && cargo +nightly doc
If you're using fish you can either use the posix-style syntax that I used above or you have to use set -x to get the variable exported iirc.
Ah, this command did the trick: Fixing the errors now! |
|
The docs generate successfully for me now |
5220d47 to
06a681a
Compare
| @@ -1,4 +1,6 @@ | |||
| #![cfg_attr(docsrs, feature(doc_auto_cfg))] | |||
| // `rustdoc_internals` is needed for `#[doc(fake_variadics)]` | |||
| #![allow(internal_features)] | |||
There was a problem hiding this comment.
Should this only be enabled on docsrs and maybe docsrs_dep to prevent the miniscule chance of it accidentally being depended on elsewhere?
There was a problem hiding this comment.
That's what I have there, right?
There was a problem hiding this comment.
I meant that maybe internal_features should also be under a cfg_attr, should have been clearer
|
I'm also unsure where |
|
Changes have been cleaned up. No idea how some of that happened lol. |
|
|
||
| macro_rules! impl_type_path_tuple { | ||
| ($(#[$meta:meta])*) => { | ||
| $(#[$meta])* |
There was a problem hiding this comment.
I can remove this if wanted
|
Can you verify that these are working for It's probably a me thing, since |
13ros27
left a comment
There was a problem hiding this comment.
I haven't tried generating the docs myself (afk) but visually it all looks good to me, thanks for fixing the formatting
# Objective Relevant: bevyengine#15208 ## Solution I went ahead and added the variadics documentation in all applicable locations. ## Testing - I built the documentation and inspected it to see whether the feature is there.

Objective
Relevant: #15208
Solution
I went ahead and added the variadics documentation in all applicable locations.
Testing