Skip to content

Commit a646b39

Browse files
committed
core/any: remove Provider trait
* remove `impl Provider for Error` * rename `Demand` to `Request` * update docstrings to focus on the conceptual API provided by `Request` * move `core::any::{request_ref, request_value}` functions into `core::error` * move `core::any::tag`, `core::any::Request`, an `core::any::TaggedOption` into `core::error` * replace `provide_any` feature name w/ `error_generic_member_access` * move `core::error::request_{ref,value} tests into core::tests::error module * update unit and doc tests
1 parent 644e806 commit a646b39

File tree

10 files changed

+736
-739
lines changed

10 files changed

+736
-739
lines changed

library/alloc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
#![feature(maybe_uninit_uninit_array_transpose)]
139139
#![feature(pattern)]
140140
#![feature(pointer_byte_offsets)]
141-
#![feature(provide_any)]
142141
#![feature(ptr_internals)]
143142
#![feature(ptr_metadata)]
144143
#![feature(ptr_sub_ptr)]

library/alloc/src/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,7 @@ impl<T: core::error::Error + ?Sized> core::error::Error for Arc<T> {
35753575
core::error::Error::source(&**self)
35763576
}
35773577

3578-
fn provide<'a>(&'a self, req: &mut core::any::Demand<'a>) {
3578+
fn provide<'a>(&'a self, req: &mut core::error::Request<'a>) {
35793579
core::error::Error::provide(&**self, req);
35803580
}
35813581
}

0 commit comments

Comments
 (0)