340 Commits

Author SHA1 Message Date
David Tolnay
4a47e1362f
Release 1.0.9 2019-10-08 23:10:34 -07:00
David Tolnay
96eee9b062
Ignore some Clippy lints 2019-10-08 23:10:14 -07:00
David Tolnay
1926be80f4
Seal the Context trait 2019-10-08 23:09:08 -07:00
David Tolnay
c31e708a2c
Release 1.0.8 2019-10-08 17:42:01 -07:00
David Tolnay
da60588d02
Fix anyhow_kind dispatch on owned value 2019-10-08 17:41:25 -07:00
David Tolnay
d0c25a6b1c
Release 1.0.7 2019-10-08 17:33:25 -07:00
David Tolnay
55d054427c
Add test of anyhow macro tagged dispatch 2019-10-08 17:29:24 -07:00
David Tolnay
38c8d78f09
Recognize literal anyhow as a special case 2019-10-08 17:23:14 -07:00
David Tolnay
443cc8dedb
Document tagged dispatch approach 2019-10-08 17:20:23 -07:00
David Tolnay
14bab22e06
Tagged dispatch for anyhow!($expr) 2019-10-08 17:20:10 -07:00
David Tolnay
89df7afd15
Release 1.0.6 2019-10-08 15:37:53 -07:00
David Tolnay
c81b949080
Rephrase relationship to fehler after lots of changes 2019-10-08 14:24:01 -07:00
David Tolnay
db6d32f9a6
Add a Clippy builder in CI 2019-10-08 13:16:03 -07:00
David Tolnay
95e25cf787
Test null pointer optimization of Result<(), Error> 2019-10-08 13:02:39 -07:00
David Tolnay
63f14dbd49
Ignore test_debug test if backtrace is not available 2019-10-08 11:56:00 -07:00
David Tolnay
504107ef46
Add test of Display and Debug impls 2019-10-08 11:51:20 -07:00
David Tolnay
abd24527a1
Fill in StdError methods for ErrorImpl 2019-10-08 11:44:36 -07:00
David Tolnay
8aa46c4ee1
Release 1.0.5 2019-10-08 11:29:28 -07:00
David Tolnay
0dc3332a7d
Add test of conversion to box dyn error 2019-10-08 11:29:13 -07:00
David Tolnay
14af68869e
Add test of drop after downcast 2019-10-08 11:25:49 -07:00
David Tolnay
00911a3122
Move DetectDrop to test module 2019-10-08 11:21:55 -07:00
David Tolnay
3a1a7e855c
Add downcast_ref and downcast_mut tests 2019-10-08 11:16:07 -07:00
David Tolnay
4d051e4b76
Organize test files 2019-10-08 11:14:35 -07:00
David Tolnay
bc446d8b28
Merge pull request #12 from dtolnay/boxed
Add conversion from Error to Box<dyn StdError + Send + Sync>
2019-10-08 11:08:30 -07:00
David Tolnay
dcaff0771c
Add conversion from Error to Box<dyn StdError + Send + Sync> 2019-10-08 11:03:19 -07:00
David Tolnay
04a9f51fa7
Move repr_correctness tests to integration test file 2019-10-08 09:49:30 -07:00
David Tolnay
22c2608a84
Deallocate with the right Layout during downcast 2019-10-08 09:39:42 -07:00
David Tolnay
8895b006a7
Simplify downcast_ref and downcast_mut 2019-10-08 09:26:07 -07:00
David Tolnay
83f63a6544
Ptr read only needs a const ptr 2019-10-08 09:22:33 -07:00
David Tolnay
6b25b2f242
Deallocate ErrorImpl with the right Layout 2019-10-08 09:00:13 -07:00
David Tolnay
470db1937e
Update vtable function names to match the implementation names 2019-10-08 08:38:03 -07:00
David Tolnay
cc6501e665
Release 1.0.4 2019-10-08 08:21:24 -07:00
David Tolnay
f8457fb662
Clean up Error::context example using anyhow Result 2019-10-08 08:21:17 -07:00
David Tolnay
f1fe7c9aaa
Merge pull request #11 from amesgen/patch-1
make Result more flexible
2019-10-08 08:18:05 -07:00
amesgen
fdd60501d7
make Result more flexible 2019-10-08 17:10:59 +02:00
David Tolnay
03704991d1
Release 1.0.3 2019-10-08 02:08:04 -07:00
David Tolnay
526b677eff
Add reminder about html_root_url 2019-10-08 02:07:54 -07:00
David Tolnay
6cd9ea7666
Raise minimum supported rustc version to 1.34 2019-10-08 02:07:04 -07:00
David Tolnay
240cc8317b
Merge pull request #8 from dtolnay/option
Support context on Option
2019-10-08 02:04:09 -07:00
David Tolnay
42e5c93810
No need for object_raw, object_mut_raw to be unsafe 2019-10-08 01:34:00 -07:00
David Tolnay
aa2d08087c
Support context on Option 2019-10-08 01:27:18 -07:00
David Tolnay
c06155e5fb
Capture backtraces earlier 2019-10-08 01:21:28 -07:00
David Tolnay
310dec9efc
Introduce safe from_std and matching from_adhoc 2019-10-08 01:21:08 -07:00
David Tolnay
2a9e5b6ca3
Format with rustfmt 2019-09-08 2019-10-08 01:20:01 -07:00
David Tolnay
db2a298dc9
Change Error::construct to unsafe fn because TypeId must be correct 2019-10-08 01:06:36 -07:00
David Tolnay
eaa819d028
Move Error::new backtrace capture to backtrace_if_absent macro 2019-10-08 01:06:35 -07:00
David Tolnay
ebd9101bd7
Move backtrace capture to backtrace module and macro 2019-10-08 01:06:35 -07:00
David Tolnay
29f9375aee
Format with rustfmt 2019-09-08 2019-10-08 00:49:02 -07:00
David Tolnay
2c7d3cae75
Change Error::from calls to Error::new to cut one level of noise from backtraces 2019-10-08 00:03:19 -07:00
David Tolnay
4a350f9d15
Release 1.0.2 2019-10-07 23:20:39 -07:00