@@ -298,13 +298,14 @@ pub trait Error: Debug + Display {
298
298
299
299
/// Provides type based access to context intended for error reports.
300
300
///
301
- /// Used in conjunction with [`provide_value`] and [`provide_ref`] to extract
301
+ /// Used in conjunction with [`Demand:: provide_value`] and [`Demand:: provide_ref`] to extract
302
302
/// references to member variables from `dyn Error` trait objects.
303
303
///
304
304
/// # Example
305
305
///
306
306
/// ```rust
307
307
/// #![feature(provide_any)]
308
+ /// #![feature(error_generic_member_access)]
308
309
/// use core::fmt;
309
310
/// use core::any::Demand;
310
311
///
@@ -363,11 +364,11 @@ pub trait Error: Debug + Display {
363
364
/// assert!(core::ptr::eq(&error.backtrace, backtrace_ref));
364
365
/// }
365
366
/// ```
366
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
367
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
367
368
fn provide < ' a > ( & ' a self , _req : & mut Demand < ' a > ) { }
368
369
}
369
370
370
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
371
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
371
372
impl Provider for dyn Error + ' static {
372
373
fn provide < ' a > ( & ' a self , req : & mut Demand < ' a > ) {
373
374
self . provide ( req)
@@ -910,13 +911,13 @@ impl dyn Error + 'static {
910
911
}
911
912
912
913
/// Request a reference to context of type `T`.
913
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
914
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
914
915
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
915
916
core:: any:: request_ref ( self )
916
917
}
917
918
918
919
/// Request a value to context of type `T`.
919
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
920
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
920
921
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
921
922
core:: any:: request_value ( self )
922
923
}
@@ -945,13 +946,13 @@ impl dyn Error + 'static + Send {
945
946
}
946
947
947
948
/// Request a reference to context of type `T`.
948
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
949
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
949
950
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
950
951
<dyn Error + ' static >:: request_ref ( self )
951
952
}
952
953
953
954
/// Request a value to context of type `T`.
954
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
955
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
955
956
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
956
957
<dyn Error + ' static >:: request_value ( self )
957
958
}
@@ -980,13 +981,13 @@ impl dyn Error + 'static + Send + Sync {
980
981
}
981
982
982
983
/// Request a reference to context of type `T`.
983
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
984
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
984
985
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
985
986
<dyn Error + ' static >:: request_ref ( self )
986
987
}
987
988
988
989
/// Request a value to context of type `T`.
989
- #[ unstable( feature = "generic_member_access " , issue = "none" ) ]
990
+ #[ unstable( feature = "error_generic_member_access " , issue = "none" ) ]
990
991
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
991
992
<dyn Error + ' static >:: request_value ( self )
992
993
}
0 commit comments