Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[color-eyre] Release 0.6.2 #159

Merged
merged 4 commits into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion color-eyre/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

## [0.6.3] - 2024-03-14
### Changed
- Added color-eyre to the eyre monorepo

## [0.6.2] - 2022-07-11
### Added
- Option to disable display of location section in error reports
@@ -72,7 +76,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
better compatibility with the Display trait

<!-- next-url -->
[Unreleased]: https://github.com/eyre-rs/color-eyre/compare/v0.6.2...HEAD
[Unreleased]: https://github.com/eyre-rs/color-eyre/compare/color-eyre-v0.6.3...HEAD
[0.6.3]: https://github.com/eyre-rs/color-eyre/compare/v0.6.2...color-eyre-v0.6.3
[0.6.2]: https://github.com/eyre-rs/color-eyre/compare/v0.6.1...v0.6.2
[0.6.1]: https://github.com/eyre-rs/color-eyre/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/eyre-rs/color-eyre/compare/v0.5.11...v0.6.0
8 changes: 3 additions & 5 deletions color-eyre/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "color-eyre"
version = "0.6.2"
version = "0.6.3"
description = "An error report handler for panics and eyre::Reports for colorful, consistent, and well formatted error reports for all kinds of errors."
documentation = "https://docs.rs/color-eyre"
readme = "./README.md"


authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
readme = { workspace = true }
rust-version = { workspace = true }

[features]
@@ -41,9 +42,6 @@ wasm-bindgen-test = "0.3.15"
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.release]
dev-version = false

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "Unreleased"
2 changes: 1 addition & 1 deletion color-eyre/src/lib.rs
Original file line number Diff line number Diff line change
@@ -334,9 +334,9 @@
//! [`examples/custom_filter.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_filter.rs
//! [`examples/custom_section.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/custom_section.rs
//! [`examples/multiple_errors.rs`]: https://github.com/yaahc/color-eyre/blob/master/examples/multiple_errors.rs
#![doc(html_root_url = "https://docs.rs/color-eyre/0.6.2")]
#![doc(html_root_url = "https://docs.rs/color-eyre/0.6.3")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (ubuntu-latest)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta, --no-default-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta, --no-default-features --features track-caller)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta, --no-default-features --features auto-install)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta, --features pyo3)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (beta, --all-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (nightly, --all-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (macOS-latest)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (--no-default-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (--no-default-features --features track-caller)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (--no-default-features --features auto-install)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable, --no-default-features --features auto-install)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable, --no-default-features --features track-caller)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable, --no-default-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable, --all-features)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (stable, --features pyo3)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 339 in color-eyre/src/lib.rs

GitHub Actions / Test Suite (windows-latest)

unknown lint: `rustdoc::missing_doc_code_examples`
missing_docs,
rustdoc::missing_doc_code_examples,
rust_2018_idioms,

Unchanged files with check annotations Beta

use core::fmt::{self, Debug, Display};
#[repr(transparent)]
pub(crate) struct DisplayError<M>(pub(crate) M);

Check warning on line 5 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `DisplayError` is never constructed

Check warning on line 5 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `DisplayError` is never constructed

Check warning on line 5 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `DisplayError` is never constructed
#[repr(transparent)]
/// Wraps a Debug + Display type as an error.
/// Its Debug and Display impls are the same as the wrapped type.
pub(crate) struct MessageError<M>(pub(crate) M);
pub(crate) struct NoneError;

Check warning on line 13 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `NoneError` is never constructed

Check warning on line 13 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `NoneError` is never constructed

Check warning on line 13 in eyre/src/wrapper.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `NoneError` is never constructed
impl<M> Debug for DisplayError<M>
where
use std::{fmt, path::PathBuf, sync::Arc};
#[derive(Debug)]
struct InstallError;

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly)

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --all-features)

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Miri

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Miri

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `InstallError` is never constructed

Check warning on line 15 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `InstallError` is never constructed
impl fmt::Display for InstallError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
impl std::error::Error for InstallError {}
#[derive(Debug)]
struct InstallThemeError;

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly)

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --all-features)

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Miri

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `InstallThemeError` is never constructed

Check warning on line 26 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `InstallThemeError` is never constructed
impl fmt::Display for InstallThemeError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
impl std::error::Error for InstallThemeError {}
#[derive(Debug)]
struct InstallColorSpantraceThemeError;

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly)

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --all-features)

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Miri

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `InstallColorSpantraceThemeError` is never constructed

Check warning on line 37 in color-eyre/src/config.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `InstallColorSpantraceThemeError` is never constructed
impl fmt::Display for InstallColorSpantraceThemeError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
}
}
pub(crate) trait DisplayExt: Sized + Display {

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

trait `DisplayExt` is never used

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly)

trait `DisplayExt` is never used

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Miri

trait `DisplayExt` is never used

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

trait `DisplayExt` is never used

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

trait `DisplayExt` is never used

Check warning on line 31 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

trait `DisplayExt` is never used
fn with_header<H: Display>(self, header: H) -> Header<Self, H>;
fn with_footer<F: Display>(self, footer: F) -> Footer<Self, F>;
}
}
}
pub(crate) struct FooterWriter<W> {

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `FooterWriter` is never constructed

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly)

struct `FooterWriter` is never constructed

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Miri

struct `FooterWriter` is never constructed

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `FooterWriter` is never constructed

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `FooterWriter` is never constructed

Check warning on line 83 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `FooterWriter` is never constructed
inner: W,
had_output: bool,
}
}
#[allow(explicit_outlives_requirements)]
pub(crate) struct Footer<B, H>

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `Footer` is never constructed

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly)

struct `Footer` is never constructed

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Miri

struct `Footer` is never constructed

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `Footer` is never constructed

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `Footer` is never constructed

Check warning on line 102 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `Footer` is never constructed
where
B: Display,
H: Display,
}
#[allow(explicit_outlives_requirements)]
pub(crate) struct Header<B, H>

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features track-caller)

struct `Header` is never constructed

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly)

struct `Header` is never constructed

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Miri

struct `Header` is never constructed

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features --features auto-install)

struct `Header` is never constructed

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

struct `Header` is never constructed

Check warning on line 133 in color-eyre/src/writers.rs

GitHub Actions / Test Suite (nightly, --no-default-features)

struct `Header` is never constructed
where
B: Display,
H: Display,
use self::common::maybe_install_handler;
use self::drop::{DetectDrop, Flag};
use eyre::Report;
use std::marker::Unpin;

Check warning on line 7 in eyre/tests/test_repr.rs

GitHub Actions / Test Suite (nightly, --all-features)

the item `Unpin` is imported redundantly
use std::mem;
#[test]
use color_eyre::eyre;

Check warning on line 1 in color-eyre/tests/bt_disabled.rs

GitHub Actions / Test Suite (nightly, --features pyo3)

the item `eyre` is imported redundantly
use eyre::eyre;
#[test]