Skip to content

Commit e3839cc

Browse files
committed
fix broken doc comment
1 parent fb2d2e5 commit e3839cc

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

library/std/src/error.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,14 @@ pub trait Error: Debug + Display {
298298

299299
/// Provides type based access to context intended for error reports.
300300
///
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
302302
/// references to member variables from `dyn Error` trait objects.
303303
///
304304
/// # Example
305305
///
306306
/// ```rust
307307
/// #![feature(provide_any)]
308+
/// #![feature(error_generic_member_access)]
308309
/// use core::fmt;
309310
/// use core::any::Demand;
310311
///
@@ -363,11 +364,11 @@ pub trait Error: Debug + Display {
363364
/// assert!(core::ptr::eq(&error.backtrace, backtrace_ref));
364365
/// }
365366
/// ```
366-
#[unstable(feature = "generic_member_access", issue = "none")]
367+
#[unstable(feature = "error_generic_member_access", issue = "none")]
367368
fn provide<'a>(&'a self, _req: &mut Demand<'a>) {}
368369
}
369370

370-
#[unstable(feature = "generic_member_access", issue = "none")]
371+
#[unstable(feature = "error_generic_member_access", issue = "none")]
371372
impl Provider for dyn Error + 'static {
372373
fn provide<'a>(&'a self, req: &mut Demand<'a>) {
373374
self.provide(req)
@@ -910,13 +911,13 @@ impl dyn Error + 'static {
910911
}
911912

912913
/// 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")]
914915
pub fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T> {
915916
core::any::request_ref(self)
916917
}
917918

918919
/// 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")]
920921
pub fn request_value<T: 'static>(&self) -> Option<T> {
921922
core::any::request_value(self)
922923
}
@@ -945,13 +946,13 @@ impl dyn Error + 'static + Send {
945946
}
946947

947948
/// 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")]
949950
pub fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T> {
950951
<dyn Error + 'static>::request_ref(self)
951952
}
952953

953954
/// 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")]
955956
pub fn request_value<T: 'static>(&self) -> Option<T> {
956957
<dyn Error + 'static>::request_value(self)
957958
}
@@ -980,13 +981,13 @@ impl dyn Error + 'static + Send + Sync {
980981
}
981982

982983
/// 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")]
984985
pub fn request_ref<T: ?Sized + 'static>(&self) -> Option<&T> {
985986
<dyn Error + 'static>::request_ref(self)
986987
}
987988

988989
/// 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")]
990991
pub fn request_value<T: 'static>(&self) -> Option<T> {
991992
<dyn Error + 'static>::request_value(self)
992993
}

0 commit comments

Comments
 (0)