diff options
| author | Nick Cameron <nrc@ncameron.org> | 2022-04-14 07:56:09 +0100 |
|---|---|---|
| committer | Nick Cameron <nrc@ncameron.org> | 2022-06-06 12:10:14 +0100 |
| commit | 2e0ca2537f0f8549e5b24ff7d0b849b61aba7414 (patch) | |
| tree | 7e40a2c84280f0636db50d02158825292ed2e37e | |
| parent | e82368d6fc3336a1395c56a9bdc83fd76bbf4732 (diff) | |
| download | rust-2e0ca2537f0f8549e5b24ff7d0b849b61aba7414.tar.gz rust-2e0ca2537f0f8549e5b24ff7d0b849b61aba7414.zip | |
Add tracking issue number
Signed-off-by: Nick Cameron <nrc@ncameron.org>
| -rw-r--r-- | library/core/src/any.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/core/src/any.rs b/library/core/src/any.rs index a4d902150f8..c0a76389b68 100644 --- a/library/core/src/any.rs +++ b/library/core/src/any.rs @@ -776,7 +776,7 @@ pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str { /////////////////////////////////////////////////////////////////////////////// /// Trait implemented by a type which can dynamically provide values based on type. -#[unstable(feature = "provide_any", issue = "none")] +#[unstable(feature = "provide_any", issue = "96024")] pub trait Provider { /// Data providers should implement this method to provide *all* values they are able to /// provide by using `demand`. @@ -796,7 +796,7 @@ pub trait Provider { /// } /// } /// ``` - #[unstable(feature = "provide_any", issue = "none")] + #[unstable(feature = "provide_any", issue = "96024")] fn provide<'a>(&'a self, demand: &mut Demand<'a>); } @@ -814,7 +814,7 @@ pub trait Provider { /// request_value::<String, _>(provider).unwrap() /// } /// ``` -#[unstable(feature = "provide_any", issue = "none")] +#[unstable(feature = "provide_any", issue = "96024")] pub fn request_value<'a, T, P>(provider: &'a P) -> Option<T> where T: 'static, @@ -837,7 +837,7 @@ where /// request_ref::<str, _>(provider).unwrap() /// } /// ``` -#[unstable(feature = "provide_any", issue = "none")] +#[unstable(feature = "provide_any", issue = "96024")] pub fn request_ref<'a, T, P>(provider: &'a P) -> Option<&'a T> where T: 'static + ?Sized, @@ -865,7 +865,7 @@ where /// /// A data provider provides values by calling this type's provide methods. #[allow(missing_debug_implementations)] -#[unstable(feature = "provide_any", issue = "none")] +#[unstable(feature = "provide_any", issue = "96024")] #[repr(transparent)] pub struct Demand<'a>(dyn Erased<'a> + 'a); @@ -887,7 +887,7 @@ impl<'a> Demand<'a> { /// } /// } /// ``` - #[unstable(feature = "provide_any", issue = "none")] + #[unstable(feature = "provide_any", issue = "96024")] pub fn provide_value<T, F>(&mut self, fulfil: F) -> &mut Self where T: 'static, @@ -914,7 +914,7 @@ impl<'a> Demand<'a> { /// } /// } /// ``` - #[unstable(feature = "provide_any", issue = "none")] + #[unstable(feature = "provide_any", issue = "96024")] pub fn provide_ref<T: ?Sized + 'static>(&mut self, value: &'a T) -> &mut Self { self.provide::<tags::Ref<tags::MaybeSizedValue<T>>>(value) } @@ -1034,7 +1034,7 @@ impl<'a, I: tags::Type<'a>> Erased<'a> for TaggedOption<'a, I> { } } -#[unstable(feature = "provide_any", issue = "none")] +#[unstable(feature = "provide_any", issue = "96024")] impl<'a> dyn Erased<'a> { /// Returns some reference to the dynamic value if it is tagged with `I`, /// or `None` otherwise. |
