From 2e0ca2537f0f8549e5b24ff7d0b849b61aba7414 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Thu, 14 Apr 2022 07:56:09 +0100 Subject: [PATCH] Add tracking issue number Signed-off-by: Nick Cameron --- library/core/src/any.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/core/src/any.rs b/library/core/src/any.rs index a4d902150f87..c0a76389b681 100644 --- a/library/core/src/any.rs +++ b/library/core/src/any.rs @@ -776,7 +776,7 @@ pub const fn type_name_of_val(_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::(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 where T: 'static, @@ -837,7 +837,7 @@ pub fn request_value<'a, T, P>(provider: &'a P) -> Option /// request_ref::(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 @@ fn request_by_type_tag<'a, I, P>(provider: &'a P) -> Option /// /// 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(&mut self, fulfil: F) -> &mut Self where T: 'static, @@ -914,7 +914,7 @@ pub fn provide_value(&mut self, fulfil: F) -> &mut Self /// } /// } /// ``` - #[unstable(feature = "provide_any", issue = "none")] + #[unstable(feature = "provide_any", issue = "96024")] pub fn provide_ref(&mut self, value: &'a T) -> &mut Self { self.provide::>>(value) } @@ -1034,7 +1034,7 @@ fn tag_id(&self) -> TypeId { } } -#[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.