Commit Graph

542 Commits

Author SHA1 Message Date
David Tolnay 3a0bac2bcc
Merge pull request #197 from dtolnay/backtracedoc
Fix documentation mentioning `backtrace()` method
2022-09-27 14:37:36 -07:00
David Tolnay c2759ce82e
Fix documentation mentioning 'backtrace()' method 2022-09-27 14:34:19 -07:00
David Tolnay 7b226e33c7
Release 1.0.36 2022-09-24 20:07:08 -07:00
David Tolnay f062061cf1
Copy docs on struct error(transparent) into readme 2022-09-24 20:06:12 -07:00
David Tolnay 5271eb374d
Touch up PR 195 2022-09-24 20:04:56 -07:00
David Tolnay 8e8e41db1e
Merge pull request #195 from matklad/error-transparent
document that `error(transparent)` works with structs
2022-09-24 20:04:49 -07:00
David Tolnay c79b023ce1
Update ui test suite to nightly-2022-09-25 2022-09-24 19:49:27 -07:00
Aleksey Kladov 765cd2a44c document that `error(transparent)` works with structs 2022-09-25 00:05:23 +01:00
David Tolnay b37dc365b6
Raise minimum tested toolchain to rust 1.56
Required by the transitive dev-dependency on once_cell.

    error: failed to parse manifest at github.com-1ecc6299db9ec823/once_cell-1.15.0/Cargo.toml

    Caused by:
      feature `edition2021` is required

      The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
      Consider trying a newer version of Cargo (this may require the nightly release).
      See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
2022-09-20 22:08:50 -07:00
David Tolnay 31dfd4cb6e
Remove default package.readme metadata from Cargo.toml
Since cargo 1.46.0, README.md is recognized by default.
2022-09-14 09:16:01 -07:00
David Tolnay 10ffe03817
Release 1.0.35 2022-09-13 11:56:21 -07:00
David Tolnay 9be0f4121e
Merge pull request #191 from dtolnay/anyhowprovider
Pull in Provider impl from anyhow 1.0.65
2022-09-13 11:56:10 -07:00
David Tolnay 1a90b77165
Pull in Provider impl from anyhow 1.0.65 2022-09-13 11:53:57 -07:00
David Tolnay 2ca76edd6e
Merge pull request #190 from dtolnay/provider
Fix "Multiple applicable provide methods in scope"
2022-09-13 11:43:55 -07:00
David Tolnay 01e7c18310
Temporarily disable AnyhowBacktrace test 2022-09-13 11:33:54 -07:00
David Tolnay aaf8449dcb
Use ThiserrorProvide to disambiguate 'provide' method calls 2022-09-13 11:32:06 -07:00
David Tolnay 460396e8f3
Add trait with method that won't collide between Provider and Error 2022-09-13 11:32:05 -07:00
David Tolnay 293b127bc8
Add build script to detect Provider support 2022-09-13 11:32:05 -07:00
David Tolnay 3bcad5957d
Revert "Directly call source.provide instead of going through dyn error"
This reverts commit f924c251ec.
2022-09-13 11:32:05 -07:00
David Tolnay 21198c9c0a
Move multiple-provide test into test_backtrace
Currently fails with:

    error[E0034]: multiple applicable items in scope
       --> tests/test_backtrace.rs:165:13
        |
    165 |             x: std::io::Error,
        |             ^ multiple `provide` found
        |
        = note: candidate #1 is defined in an impl of the trait `Provider` for the type `E`
        = note: candidate #2 is defined in an impl of the trait `std::error::Error` for the type `std::io::Error`
    help: disambiguate the associated function for candidate #1
        |
    165 |             Provider::provide(&x, Error): std::io::Error,
        |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    help: disambiguate the associated function for candidate #2
        |
    165 |             std::error::Error::provide(&x, Error): std::io::Error,
        |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-13 11:31:51 -07:00
David Tolnay 37442be894
Sealed trait does not need its own module
The aserror module is already private to thiserror, with AsDynError
being re-exported in thiserror::private, so as long as Sealed is not
also re-exported there, it remains inaccessible outside the crate.
2022-09-13 11:15:27 -07:00
David Tolnay 12acbc5f3e
Merge pull request #189 from dtolnay/sealed
Add Sealed supertrait to private AsDynError trait
2022-09-13 10:44:23 -07:00
David Tolnay 85d812fcd8
Ignore wildcard_imports pedantic clippy lint
error: usage of wildcard import
      --> src/aserror.rs:45:9
       |
    45 |     use super::*;
       |         ^^^^^^^^ help: try: `super::{Error, UnwindSafe}`
       |
       = note: `-D clippy::wildcard-imports` implied by `-D clippy::pedantic`
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports
2022-09-13 10:42:03 -07:00
David Tolnay 6957309724
Add Sealed supertrait to private AsDynError trait 2022-09-13 10:38:22 -07:00
David Tolnay c6b8fcf0c4
Merge pull request #188 from dtolnay/boxdynerrorbacktrace
Add test involving backtrace from a Box<dyn Error>
2022-09-05 20:02:02 -07:00
David Tolnay 4aa7a1c2c8
Add test involving backtrace from a Box<dyn Error> 2022-09-05 19:35:25 -07:00
David Tolnay 2e4576c340
Merge pull request #187 from dtolnay/anyhowbacktrace
Add test of getting backtrace from an anyhow source
2022-09-05 18:47:12 -07:00
David Tolnay bd0bd70ae7
Add test of getting backtrace from an anyhow source 2022-09-05 18:44:02 -07:00
David Tolnay 2df0715d7e
Merge pull request #186 from dtolnay/multipleprovide
Add temporary ui test of 'multiple applicable items' error
2022-09-05 18:36:05 -07:00
David Tolnay 9e9afbff24
Add temporary ui test of 'multiple applicable items' error 2022-09-05 18:32:49 -07:00
David Tolnay 48f697af3d
Release 1.0.34 2022-09-04 14:03:15 -07:00
David Tolnay 76c5568135
Merge pull request #184 from dtolnay/provide
Directly call source.provide instead of going through dyn error
2022-09-04 14:02:38 -07:00
David Tolnay f924c251ec
Directly call source.provide instead of going through dyn error 2022-09-04 13:49:39 -07:00
David Tolnay 2f093b5fbc
GitHub Workflows security hardening 2022-09-02 15:09:32 -07:00
David Tolnay 63420ea04e
Merge pull request #183 from dtolnay/deprecated
Re-enable deprecated variants test.
2022-08-30 19:23:17 -07:00
David Tolnay 8adf113f0a
Revert "Delete broken #[deprecated] test"
This reverts commit 8862629bcc.
2022-08-30 19:14:00 -07:00
David Tolnay fdb266af29
Release 1.0.33 2022-08-30 19:12:58 -07:00
David Tolnay 905680eee0
Merge pull request #182 from dtolnay/provider
Expose backtrace via generic member access
2022-08-30 19:12:36 -07:00
David Tolnay e11c97babf
Update backtrace test to provider API 2022-08-30 19:08:59 -07:00
David Tolnay 986e106172
Revert "Disable nightly backtrace testing until converted to provider API"
This reverts commit c1fb583043.
2022-08-30 19:04:12 -07:00
David Tolnay 985da4c7d9
Expose backtrace via generic member access 2022-08-30 19:04:12 -07:00
David Tolnay 034c6ecf10
Update ui test suite to nightly-2022-08-24 2022-08-24 02:15:12 -07:00
David Tolnay c81dc6731b
Make private module more clearly private 2022-08-12 21:53:47 -07:00
David Tolnay 1442e27eaf
Remove stabilized feature(backtrace) from ui test 2022-08-10 21:18:11 -07:00
David Tolnay 0ac645e896
Update ui test suite to nightly-2022-08-11 2022-08-10 21:17:07 -07:00
David Tolnay 8cb98afb74
Release 1.0.32 2022-08-02 20:47:05 -07:00
David Tolnay c1fb583043
Disable nightly backtrace testing until converted to provider API 2022-08-02 20:46:44 -07:00
David Tolnay 8b23fbb895
Update keywords in crates.io metadata 2022-08-02 10:38:57 -07:00
David Tolnay c79f5c9be5
Sort package entries in Cargo.toml 2022-07-31 19:19:06 -07:00
David Tolnay 24db929a56
Update ui test suite to nightly-2022-07-10 2022-07-09 19:50:13 -07:00