Implement ToJson for &[T], and add tests. Closes #14619#14625
Implement ToJson for &[T], and add tests. Closes #14619#14625bors merged 1 commit intorust-lang:masterfrom
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.