Skip to content

Releases: dtolnay/thiserror

1.0.23

27 Dec 01:39
1.0.23
d263b4b
Compare
Choose a tag to compare
  • Better diagnostic when putting non-static lifetimes into the source type of an error (#115, #116)

1.0.22

04 Nov 00:50
1.0.22
09f247a
Compare
Choose a tag to compare
  • Fix raw identifier fields in format arguments (#108, thanks @ninevra)

    #[derive(Error, Debug)]
    #[error("raw identifier: {r#type}")]
    pub struct Error {
        r#type: i32,
    }
  • Fix Rust keyword named format arguments (#109)

    #[derive(Error, Debug)]
    #[error("keyword: {type}", type = 1)]
    pub struct Error;

1.0.21

07 Oct 00:00
1.0.21
f757a04
Compare
Choose a tag to compare
  • Support capturing backtraces inside of Arc from a From impl, which makes it possible for errors having backtraces to be clonable (#102)

    use std::backtrace::Backtrace;
    use std::sync::Arc;
    use thiserror::Error;
    
    #[derive(Error, Debug, Clone)]
    #[error("...")]
    pub struct ClonableErrorWithBacktrace {
        #[from]
        source: Inner,
        #[backtrace]
        backtrace: Arc<Backtrace>,
    }

1.0.20

15 Jun 23:23
1.0.20
42b537a
Compare
Choose a tag to compare
  • Resolve unused_qualifications lint in generated code (#91)

1.0.19

22 May 02:09
1.0.19
8305a8c
Compare
Choose a tag to compare
  • Avoid triggering used_underscore_binding pedantic Clippy lint in generated code of #[error(transparent)] attribute (#88)

1.0.18

15 May 23:58
1.0.18
25632e8
Compare
Choose a tag to compare
  • Fix compiler error in some cases when derive(Error) is invoked from inside of a macro_rules macro (#86)

1.0.17

13 May 05:48
1.0.17
f79a85f
Compare
Choose a tag to compare
  • Documentation improvements

1.0.16

27 Apr 22:54
1.0.16
94e62a8
Compare
Choose a tag to compare
  • Catch misplaced #[error(transparent)] attributes (#80, #81)

1.0.15

11 Apr 18:39
1.0.15
d8d55e6
Compare
Choose a tag to compare
  • Improve error message when an error type is missing a Display impl (#75)

1.0.14

29 Mar 15:48
1.0.14
6fd4059
Compare
Choose a tag to compare
  • Avoid triggering deprecation warnings when an error enum has deprecated variants