-
Notifications
You must be signed in to change notification settings - Fork 13.4k
json::PrettyEncoder won't encode some values #14891
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
Comments
Eh, never mind, it's my fault, looks like the Still, though, it would be nice if the emits behaved the same way for both encoders. To be honest, I don't quite see why |
Serialize is out of tree, and it seems as though you've figured out your error, so I'm giving this a close. |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Evaluate `UnevaluatedConst` in unify fix rust-lang#14844
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Insert type vars in function arguments follow up rust-lang#14891
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
May 31, 2025
`is_trait_method` is not even used in this codeblock, whereas `implements_trait` is used but not imported (not sure if this is _actually_ a "changelog: none", since the documentation is at least contributor-facing) changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I ran into a problem with
json::PrettyEncoder
, it won't encode values withemit_struct_field()
whereas the regularjson::Encoder
works just fine using exactly the same code.This is the code to reproduce:
The text was updated successfully, but these errors were encountered: