diff options
| author | wayne warren <wayne.warren.s@gmail.com> | 2023-07-06 10:53:52 -0600 |
|---|---|---|
| committer | wayne warren <wayne.warren.s@gmail.com> | 2023-08-13 13:07:53 -0600 |
| commit | a646b3996510fb79a8fd4701f888542e9b280504 (patch) | |
| tree | 3594f24b64b7cf353df9e1a9ee09c8f64c2fd2be /library/std/src/error | |
| parent | 644e8068cbffef6428d1970fe50a4a863079ee54 (diff) | |
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
Diffstat (limited to 'library/std/src/error')
| -rw-r--r-- | library/std/src/error/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/error/tests.rs b/library/std/src/error/tests.rs index ee999bd65c3..ed070a26b0c 100644 --- a/library/std/src/error/tests.rs +++ b/library/std/src/error/tests.rs @@ -1,6 +1,6 @@ use super::Error; use crate::fmt; -use core::any::Demand; +use core::error::Request; #[derive(Debug, PartialEq)] struct A; @@ -199,7 +199,7 @@ where self.source.as_deref() } - fn provide<'a>(&'a self, req: &mut Demand<'a>) { + fn provide<'a>(&'a self, req: &mut Request<'a>) { self.backtrace.as_ref().map(|bt| req.provide_ref::<Backtrace>(bt)); } } |
