Commit Graph

127 Commits

Author SHA1 Message Date
David Tolnay c05e9ed4ec
Support mixing shorthand and non-shorthand format args 2019-11-30 17:45:44 -08:00
David Tolnay 03e522411e
Break up test_display into individual test cases 2019-11-30 17:35:24 -08:00
David Tolnay 77c43ea23a
Merge pull request #48 from dtolnay/static
Support referring to statics and consts from shorthand
2019-11-30 17:16:06 -08:00
David Tolnay 6dddf44493
Simplify with Index's new IdentFragment impl 2019-11-30 17:08:54 -08:00
David Tolnay 7f8b5784cb
Support referring to statics and consts from shorthand 2019-11-30 16:30:04 -08:00
David Tolnay 6b6857ba89
Pass field list into expand_shorthand 2019-11-30 16:25:41 -08:00
David Tolnay 886baece01
Defer expansion of fmt shorthand
This will make it possible to distinguish between our expansion
heuristic for tuple vs struct variants, as well as local fields vs
statics.
2019-11-30 16:25:40 -08:00
David Tolnay bfc7f8a4b1
Remove shorthand test superseded by integration tests
This is sufficiently well covered by test_display.rs and test_path.rs.
2019-11-30 16:25:10 -08:00
David Tolnay 634bec57c4
Add test of escaped braces in format string 2019-11-30 16:24:43 -08:00
David Tolnay f866fa9a71
Suppress range_plus_one lint
I find this easier to understand in combination with the line right
after.
2019-11-30 00:51:42 -08:00
David Tolnay 938bcec8f9
Release 1.0.6 2019-11-18 23:21:55 -08:00
David Tolnay 3348428b60
Assert that boxed source can be downcast 2019-11-18 23:20:53 -08:00
David Tolnay 1a000b4a7d
Merge pull request #41 from mathstuf/support-non-sync-errors
aserror: support Send + !Sync errors too
2019-11-18 23:17:27 -08:00
Ben Boeckel 4303f71cce aserror: support Send + !Sync errors too 2019-11-18 22:14:23 -05:00
David Tolnay eb052728d4
Ignore a new clippy lint 2019-11-13 11:22:17 -08:00
David Tolnay 10b8e5817a
Release 1.0.5 2019-11-09 18:40:32 -08:00
David Tolnay 4bd5753b94
Add ui test of missing Display impl 2019-11-09 18:38:02 -08:00
David Tolnay 2e1939158a
Merge pull request #39 from dtolnay/path
Support interpolating paths as if they had a Display impl
2019-11-09 18:34:53 -08:00
David Tolnay f1eb7a8fcb
Add test for displaying paths 2019-11-09 18:24:49 -08:00
David Tolnay 72cb53e1c7
Support interpolating paths as if they had a Display impl 2019-11-09 16:27:22 -08:00
David Tolnay 6f3c40e36b
Run thiserror-impl tests in CI 2019-11-09 16:25:57 -08:00
David Tolnay e6762d9440
Fill in missing fields of thiserror-impl unit test 2019-11-09 16:24:43 -08:00
David Tolnay 7fde96548c
Add brief comparison with anyhow 2019-10-29 00:03:15 -07:00
David Tolnay d11d4c6e63 Raise minimum tested version to rustc 1.36
Our trybuild dev-dependency no longer supports 1.34.
2019-10-28 12:12:06 -07:00
David Tolnay 507914148a
Release 1.0.4 2019-10-27 08:19:19 -07:00
David Tolnay 12404e42a5
Merge pull request 36 from mathstuf:formatter-name-collision 2019-10-27 08:18:28 -07:00
Ben Boeckel 5ae5b4e60e display: avoid using `formatter`
This can collide with enum variant field names. Namespace with a
`_thiserror_` prefix to avoid such collisions.
2019-10-27 02:57:24 -04:00
David Tolnay b2b3bae1db
Release 1.0.3 2019-10-19 08:56:47 -04:00
David Tolnay 7460283927
Allow ident containing number
Fixes #34.
2019-10-19 08:55:58 -04:00
David Tolnay f1bf89d286
Merge pull request #33 from kornelski/patch-1
Add crates-io category
2019-10-15 16:41:46 -07:00
Kornel da2d3822ce
Add crates-io category 2019-10-16 00:30:23 +01:00
David Tolnay bfe7b5aa55
Improve spacing around long arrows in documentation 2019-10-13 09:16:40 -07:00
David Tolnay ee864e1641
Release 1.0.2 2019-10-12 18:19:41 -07:00
David Tolnay ff960e347a
Document #[from] 2019-10-12 18:18:31 -07:00
David Tolnay df94656ef3
Merge pull request #31 from dtolnay/from
Support backtrace in From impl
2019-10-12 18:18:01 -07:00
David Tolnay 46de723f20
Support backtrace in From impl 2019-10-12 18:08:20 -07:00
David Tolnay f40910293b
Merge pull request #30 from dtolnay/from
Generate From<$source> impls
2019-10-12 18:07:44 -07:00
David Tolnay f90fe75315
Test #[from] 2019-10-12 17:55:29 -07:00
David Tolnay 0e8d1baa69
Detect extraneous fields before generating From 2019-10-12 17:55:29 -07:00
David Tolnay 2492735b67
Detect multiple variants having same From type 2019-10-12 17:55:29 -07:00
David Tolnay f3b38c3a8a
Implement From for enums 2019-10-12 17:55:29 -07:00
David Tolnay 946be606a9
Implement From for structs 2019-10-12 17:55:29 -07:00
David Tolnay 03e77b3d2b
Treat the #[from] field implicitly as source 2019-10-12 17:55:29 -07:00
David Tolnay 2305f75976
Validate #[from] attribute 2019-10-12 17:55:29 -07:00
David Tolnay 8cbc50e05a
Parse #[from] attribute 2019-10-12 17:30:09 -07:00
David Tolnay 0c5e34fb12
Rename attr validation methods 2019-10-12 17:27:40 -07:00
David Tolnay f16952290d
Simplify storage of source and backtrace attrs 2019-10-12 16:28:24 -07:00
David Tolnay cb73bf9ccc
Merge pull request #29 from dtolnay/opt
Support Option<Source> and Option<Backtrace>
2019-10-12 16:28:04 -07:00
David Tolnay b4996def92
Make test_option appear as ignored or passing 2019-10-12 16:18:43 -07:00
David Tolnay d9ed0fba49
Add test for optional backtrace 2019-10-12 16:14:07 -07:00