David Tolnay

Results 361 issues of David Tolnay

In https://github.com/dtolnay/serde-yaml/issues/94 I would like to move serde-yaml off of [yaml-rust](https://github.com/chyh1990/yaml-rust) as a YAML backend and to a much simpler backend with support for a minimum viable subset of YAML...

I would like to be able to write: ```rust dtd!("path/to/note.dtd"); ``` or possibly inline: ```rust dtd! { } ``` and have this expand to the right data structures to represent...

Like all of the standard library's traits, Serde's traits are limited to fixed size arrays up to an arbitrary maximum size. Serde defines Serialize and Deserialize impls for arrays up...

Originally filed as https://github.com/serde-rs/json/issues/318, but since this will involve quite a bit more unsafe code than currently exists in serde_json I think it could be better to put in a...

In the GitBook that backs https://serde.rs, I use [several GitBook plugins](https://github.com/serde-rs/serde-rs.github.io/blob/67d32d8af27e27f367438e25dc90dde6be10a660/book.json#L5), a few of which I wrote myself. For example I have a plugin that lets me insert playground links...

Originally requested in https://github.com/dtolnay/miniserde/issues/3 but Miniserde is taking a minimal approach that does not leave room for shipping helpers like that in-crate. The Display and FromStr adapters in that thread...

This currently doesn't work, because I think we are looking for idents/paths only. We should add support for literals. ```rust #[remain::check] fn former_lint_group(lint_id: &str) -> Option { #[sorted] match lint_id...

help wanted

For example the following ICE in nightly-2020-06-04 (https://github.com/rust-lang/rust/issues/97698): ```rust // tests/compiletest.rs #[test] fn ui() { let t = trybuild::TestCases::new(); t.compile_fail("tests/ui/break-rust.rs"); } ``` ```rust // tests/ui/break-rust.rs trait AmbiguousIfImpl { fn method()...

https://github.com/dtolnay/trybuild/issues/202#issuecomment-1284634512 > My macro outputs "Help: Searching in directory $CARGO_MANIFEST_DIR" when the file it was looking for doesn't exist, which by its nature, will not always be the same path....

```console test tests/ui/error.rs ... error Expected test case to fail to compile, but it succeeded. ``` Even though, compiling the same macro invocation directly using cargo, cargo sees that it...