-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix json tuple struct enum variant #88391
Conversation
This comment has been minimized.
This comment has been minimized.
4a54a93
to
e483f72
Compare
e483f72
to
073ebfb
Compare
Updated! I replaced the |
073ebfb
to
a521388
Compare
Updated! |
@@ -56,6 +56,10 @@ crate trait DocFolder: Sized { | |||
|| j.fields.iter().any(|f| f.is_stripped()); |
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.
[Self note (for future):] We can probably remove this part because variant fields always have inherited visibility.
// Variant fields have inherited visibility | ||
clean::VariantItem(clean::Variant::Struct(..) | clean::Variant::Tuple(..)) => true, |
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.
This seems like an unrelated—but still good—fix, right?
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.
Ah indeed, didn't even pay attention. But yes, bug fix! :)
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.
Or actually it shouldn't have any effect on behavior, but it is a performance fix :)
@bors r=camelid,notriddle |
📌 Commit a521388 has been approved by |
Rollup of 10 pull requests Successful merges: - rust-lang#85017 (Add carrying_add, borrowing_sub, widening_mul, carrying_mul methods to integers) - rust-lang#86362 (Avoid cloning LocalDecls) - rust-lang#88391 (Fix json tuple struct enum variant ) - rust-lang#88399 (Disallow the aapcs CC on Aarch64) - rust-lang#88418 (Allow `~const` bounds on trait assoc functions) - rust-lang#88445 (Clean up the lowering of AST items) - rust-lang#88495 (Add `TcpStream::set_linger` and `TcpStream::linger`) - rust-lang#88501 (Use right span in prelude collision suggestions with macros. ) - rust-lang#88504 (Keep turbofish in prelude collision lint.) - rust-lang#88524 (Remove unnecessary `mut` from udp doctests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #87887.
cc @dsherret @camelid
r? @notriddle