Skip to content

Commit

Permalink
Prepare for 12.2 release (rust-lang-deprecated#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGauge authored Feb 20, 2020
1 parent 1176eaf commit c006db6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Unreleased
# 0.12.2
- [allow `Error::description` to be used for rust below 1.42](https://github.com/rust-lang-nursery/error-chain/pull/285)
- [Improvements to has_backtrace_depending_on_env](https://github.com/rust-lang-nursery/error-chain/pull/277)
- Backtrace support now requires rust 1.32.0

# 0.12.1

Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "error-chain"
version = "0.12.1" # remember to update html_root_url
version = "0.12.2" # remember to update html_root_url
authors = [ "Brian Anderson <[email protected]>",
"Paul Colomiets <[email protected]>",
"Colin Kiegel <[email protected]>",
"Yamakaky <[email protected]>"]
"Yamakaky <[email protected]>",
"Andrew Gauger <[email protected]>"]
description = "Yet another error boilerplate library."
keywords = ["error"]
categories = ["rust-patterns"]
Expand Down
8 changes: 6 additions & 2 deletions src/error_chain.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,18 @@ macro_rules! impl_error_chain_cause_or_source {
#[cfg(has_error_description_deprecated)]
#[macro_export(local_inner_macros)]
macro_rules! call_to_deprecated_description {
($e:ident) => { "" };
($e:ident) => {
""
};
}

#[doc(hidden)]
#[cfg(not(has_error_description_deprecated))]
#[macro_export(local_inner_macros)]
macro_rules! call_to_deprecated_description {
($e:ident) => { ::std::error::Error::description($e) };
($e:ident) => {
::std::error::Error::description($e)
};
}

/// Prefer to use `error_chain` instead of this macro.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(missing_docs)]
#![doc(html_root_url = "https://docs.rs/error-chain/0.12.1")]
#![doc(html_root_url = "https://docs.rs/error-chain/0.12.2")]

//! A library for consistent and reliable error handling
//!
Expand Down

0 comments on commit c006db6

Please sign in to comment.