-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Implement ToJson for &[T], and add tests. Closes #14619 #14625
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
Conversation
cc @SimonSapin |
Looks good to me. Thanks! |
It probably makes sense to implement it also for |
@Sawyer47 Don’t |
|
@SimonSapin Honestly I'm not sure. There are separate implementations of Eq, Ord, PartialEq, PartialOrd, Show and Hash for both |
Some traits are explicitly implemented for
Because |
@alexcrichton Thanks, good to know. |
Let me know if the amount of tests is enough or too much.
…ments, r=Veykril mbe: fix token conversion for doc comments fixes rust-lang#14611 when creating token trees for the converted doc comment, we should use the correct span in all places, rather than allowing some to remain unspecified. otherwise, things behave incorrectly.
Let me know if the amount of tests is enough or too much.