Commit Graph

542 Commits

Author SHA1 Message Date
David Tolnay 31ecbd2410
Merge pull request #17 from dtolnay/trybuild
Set up some trybuild tests
2019-10-11 12:06:38 -07:00
David Tolnay 39d2ae53ba
Set up some trybuild tests 2019-10-11 11:47:57 -07:00
David Tolnay ab48dd19d3
Resolve iter_skip_next lint 2019-10-11 11:12:28 -07:00
David Tolnay 5994705b38
Generate more concise code for pass-through format
Fixes #13.
2019-10-11 11:05:09 -07:00
David Tolnay a6b1d28e40
Keep track of whether fmt string uses shorthand 2019-10-11 11:05:09 -07:00
David Tolnay c6000945c7
Collapse some needlessly verbose code in test 2019-10-11 11:04:07 -07:00
David Tolnay 02f56e0c49
Merge pull request #16 from dtolnay/nested
Accept `.var` shorthand inside of parens
2019-10-11 11:03:29 -07:00
David Tolnay 8b31ec6fd0
Format with rustfmt 2019-09-08 2019-10-11 10:46:20 -07:00
David Tolnay 7fa5b8114d
Accept `.var` shorthand inside of parens 2019-10-11 10:46:20 -07:00
David Tolnay e50cf82f33
Extract the fmt args parser to a function 2019-10-11 10:46:20 -07:00
David Tolnay 87c80e72c8
Release 1.0.1 2019-10-09 13:05:34 -07:00
David Tolnay 13e8352b67
Call out that we do not appear in public API 2019-10-09 13:04:28 -07:00
David Tolnay 86f6b3bc4a
Release 1.0.0 2019-10-09 11:05:13 -07:00
David Tolnay 7d26b19d07
Fill in crates.io metadata 2019-10-09 11:05:12 -07:00
David Tolnay bba1013d3f
Fix up doc tests to pass tests 2019-10-09 11:03:02 -07:00
David Tolnay a57ff45069
Copy readme to crate-level doc 2019-10-09 10:59:52 -07:00
David Tolnay 39bcd05d12
Add readme 2019-10-09 10:57:45 -07:00
David Tolnay 18f327f834
Add test of an interpolated expression 2019-10-09 10:42:49 -07:00
David Tolnay 6c96a1bdff
Set up Travis build 2019-10-09 10:30:38 -07:00
David Tolnay c0d3d564cf
Resolve range_plus_one lint 2019-10-09 10:30:24 -07:00
David Tolnay 490c962d68
Avoid enum variants through Self
To support compilers older than rustc 1.37.
2019-10-09 10:27:39 -07:00
David Tolnay 6dc9c6e308
Make a workspace root 2019-10-09 10:24:50 -07:00
David Tolnay f7e48a99b3
Use fmt shorthand in tests 2019-10-09 10:23:33 -07:00
David Tolnay 95cd9864d6
Accept shorthand for the format string 2019-10-09 10:23:20 -07:00
David Tolnay 69df19571a
Implement Display for enums 2019-10-09 09:03:51 -07:00
David Tolnay 4778dc126c
Add basic Display test 2019-10-09 08:57:46 -07:00
David Tolnay 63ba03bacb
Implement Display for structs 2019-10-09 08:45:29 -07:00
David Tolnay 8e866cde57
Error implementation for enums 2019-10-09 08:12:22 -07:00
David Tolnay 761ff1c708
Support any source() that derefs to std::error::Error 2019-10-09 07:33:17 -07:00
David Tolnay bb13f4b07a
Improve error position when cause is wrong type 2019-10-09 07:30:46 -07:00
David Tolnay cc4af147f3
Add test with error source 2019-10-09 07:28:24 -07:00
David Tolnay 3e7ddeb72d
Easier display impl in tests 2019-10-09 07:27:11 -07:00
David Tolnay fe4de24dcc
Add some tests of struct errors 2019-10-09 07:27:10 -07:00
David Tolnay 5038953fd1
Unify braced struct and tuple struct field iteration 2019-10-09 07:27:10 -07:00
David Tolnay c86452cc68
Add backtrace() method for structs 2019-10-09 07:27:10 -07:00
David Tolnay 4cdeec15e5
Locate field that has the #[source] attribute 2019-10-09 07:27:10 -07:00
David Tolnay f1dcfe0f0a
Add source() method for structs 2019-10-09 06:57:35 -07:00
David Tolnay 1f02d8d9fd
Implement derive for unit struct errors 2019-10-09 06:46:21 -07:00
David Tolnay c30d847847
Begin derive macro implementation 2019-10-08 23:29:12 -07:00
David Tolnay 1987e628fa
Add thiserror-impl crate to be the proc macro 2019-10-08 23:22:44 -07:00
David Tolnay b67ea2e157
Dual mit OR apache license 2019-10-08 23:19:49 -07:00
David Tolnay 1a2172b543
Initial commit 2019-10-08 23:18:38 -07:00