Skip to content

Releases: dtolnay/thiserror

1.0.27

28 Aug 21:19
1.0.27
b087faf

Choose a tag to compare

  • Support forwarding backtrace method to source's backtrace method (#137, #146, thanks @astraw)

1.0.26

03 Jul 04:13
1.0.26
031fea6

Choose a tag to compare

1.0.25

22 May 21:34
1.0.25
19cb5ce

Choose a tag to compare

  • Support error(transparent) on errors containing a non-'static inner error (#113)

1.0.24

19 Feb 04:28
1.0.24
1b0a849

Choose a tag to compare

1.0.23

27 Dec 01:39
1.0.23
d263b4b

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

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

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

Choose a tag to compare

  • Resolve unused_qualifications lint in generated code (#91)

1.0.19

22 May 02:09
1.0.19
8305a8c

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

Choose a tag to compare

  • Fix compiler error in some cases when derive(Error) is invoked from inside of a macro_rules macro (#86)