Auto merge of #99917 - yaahc:error-in-core-move, r=thomcc
Move Error trait into core This PR moves the error trait from the standard library into a new unstable `error` module within the core library. The goal of this PR is to help unify error reporting across the std and no_std ecosystems, as well as open the door to integrating the error trait into the panic reporting system when reporting panics whose source is an errors (such as via `expect`). This PR is a rewrite of https://github.com/rust-lang/rust/pull/90328 using new compiler features that have been added to support error in core.
This commit is contained in:
commit
060e47f74a
25 changed files with 1264 additions and 226 deletions
|
@ -281,6 +281,9 @@
|
|||
#![feature(cstr_internals)]
|
||||
#![feature(duration_checked_float)]
|
||||
#![feature(duration_constants)]
|
||||
#![cfg_attr(not(bootstrap), feature(error_generic_member_access))]
|
||||
#![cfg_attr(not(bootstrap), feature(error_in_core))]
|
||||
#![cfg_attr(not(bootstrap), feature(error_iter))]
|
||||
#![feature(exact_size_is_empty)]
|
||||
#![feature(exclusive_wrapper)]
|
||||
#![feature(extend_one)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue