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

Support core::error in Rust 1.81 #463

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Rename no_std_error module to avoid confusion with core::error::Error
  • Loading branch information
shepmaster committed Sep 23, 2024
commit 695247b253632765309e2daa62a526fc21556ed5
File renamed without changes.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,15 @@ pub use std::error::Error;
feature = "std",
test
)))]
mod no_std_error;
mod fallback_error;
#[cfg(not(any(
feature = "rust_1_81",
feature = "unstable-core-error",
feature = "std",
test
)))]
#[doc(hidden)]
pub use no_std_error::Error;
pub use fallback_error::Error;

/// Ensure a condition is true. If it is not, return from the function
/// with an error.
Expand Down