@@ -365,7 +365,8 @@ pub trait Error: Debug + Display {
365
365
/// }
366
366
/// ```
367
367
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
368
- fn provide < ' a > ( & ' a self , _req : & mut Demand < ' a > ) { }
368
+ #[ allow( unused_variables) ]
369
+ fn provide < ' a > ( & ' a self , req : & mut Demand < ' a > ) { }
369
370
}
370
371
371
372
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
@@ -910,13 +911,13 @@ impl dyn Error + 'static {
910
911
}
911
912
}
912
913
913
- /// Request a reference to context of type `T`.
914
+ /// Request a reference of type `T` as context about this error .
914
915
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
915
916
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
916
917
core:: any:: request_ref ( self )
917
918
}
918
919
919
- /// Request a value to context of type `T`.
920
+ /// Request a value of type `T` as context about this error .
920
921
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
921
922
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
922
923
core:: any:: request_value ( self )
@@ -945,13 +946,13 @@ impl dyn Error + 'static + Send {
945
946
<dyn Error + ' static >:: downcast_mut :: < T > ( self )
946
947
}
947
948
948
- /// Request a reference to context of type `T`.
949
+ /// Request a reference of type `T` as context about this error .
949
950
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
950
951
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
951
952
<dyn Error + ' static >:: request_ref ( self )
952
953
}
953
954
954
- /// Request a value to context of type `T`.
955
+ /// Request a value of type `T` as context about this error .
955
956
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
956
957
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
957
958
<dyn Error + ' static >:: request_value ( self )
@@ -980,13 +981,13 @@ impl dyn Error + 'static + Send + Sync {
980
981
<dyn Error + ' static >:: downcast_mut :: < T > ( self )
981
982
}
982
983
983
- /// Request a reference to context of type `T`.
984
+ /// Request a reference of type `T` as context about this error .
984
985
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
985
986
pub fn request_ref < T : ?Sized + ' static > ( & self ) -> Option < & T > {
986
987
<dyn Error + ' static >:: request_ref ( self )
987
988
}
988
989
989
- /// Request a value to context of type `T`.
990
+ /// Request a value of type `T` as context about this error .
990
991
#[ unstable( feature = "error_generic_member_access" , issue = "none" ) ]
991
992
pub fn request_value < T : ' static > ( & self ) -> Option < T > {
992
993
<dyn Error + ' static >:: request_value ( self )
0 commit comments