161 Commits

Author SHA1 Message Date
David Tolnay
f7c0e7dbf9
Show example of anyhow::Result with two type parameters 2019-10-19 09:07:52 -04:00
David Tolnay
20fbcf3168
Release 1.0.14 2019-10-18 11:19:45 -04:00
David Tolnay
2191a63258
Merge pull request #24 from dtolnay/probe
Replace version check with probing Backtrace api
2019-10-18 11:08:49 -04:00
David Tolnay
6d0a0196eb
Add test that backtrace method exists on nightly 2019-10-18 10:50:31 -04:00
David Tolnay
5ada2978c5
Replace version check with probing Backtrace api 2019-10-18 10:45:15 -04:00
David Tolnay
d7c37d6c4d
Release 1.0.13 2019-10-13 09:08:18 -07:00
David Tolnay
7a7d683f55
Merge pull request #21 from dtolnay/build
Detect compiler minor version in build script
2019-10-13 09:08:12 -07:00
David Tolnay
d782e42503
Detect compiler minor version in build script 2019-10-13 09:03:20 -07:00
David Tolnay
f432c46269
Release 1.0.12 2019-10-11 18:32:13 -07:00
David Tolnay
499e265ce3
Merge pull request #19 from dtolnay/infer
Consolidate to one Context impl for Result to improve inference
2019-10-11 18:31:53 -07:00
David Tolnay
c695e63286
Consolidate to one Context impl for Result to improve inference 2019-10-11 18:27:03 -07:00
David Tolnay
6057864f8b
Add test demonstrating context inference failure 2019-10-11 18:23:56 -07:00
David Tolnay
f9ca23f8ed Release 1.0.11 2019-10-09 18:46:36 -07:00
David Tolnay
a727067a7d Format with rustfmt 2019-09-08 2019-10-09 18:45:40 -07:00
David Tolnay
4118197eac Explicitly specify all cast types in unsafe code 2019-10-09 18:45:40 -07:00
David Tolnay
d57f80c822 Rename vtable object ref and mut methods that are no longer raw ptr 2019-10-09 18:42:25 -07:00
David Tolnay
eeaf2efc35
Merge pull request #16 from johnschug/master
Fix UB when accessing errors with large alignment
2019-10-09 18:41:18 -07:00
John Schug
8ebf822c95 Fix UB when accessing errors with large alignment 2019-10-09 17:46:09 -07:00
David Tolnay
db8fa67c12
Release 1.0.10 2019-10-09 11:14:28 -07:00
David Tolnay
a37dea2133
Pull in thiserror library for tests 2019-10-09 11:14:00 -07:00
David Tolnay
d4bc68cf65
Link to thiserror instead of err-derive 2019-10-09 11:11:03 -07:00
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