@@ -40,10 +40,8 @@ use crate::string;
4040/// provide its own errors while also revealing some of the implementation for
4141/// debugging via [`source`] chains.
4242///
43- /// [`Result<T, E>`]: ../result/enum.Result.html
44- /// [`Display`]: ../fmt/trait.Display.html
45- /// [`Debug`]: ../fmt/trait.Debug.html
46- /// [`source`]: trait.Error.html#method.source
43+ /// [`Result<T, E>`]: Result
44+ /// [`source`]: Error::source
4745#[ stable( feature = "rust1" , since = "1.0.0" ) ]
4846pub trait Error : Debug + Display {
4947 /// The lower-level source of this error, if any.
@@ -164,8 +162,6 @@ mod private {
164162impl < ' a , E : Error + ' a > From < E > for Box < dyn Error + ' a > {
165163 /// Converts a type of [`Error`] into a box of dyn [`Error`].
166164 ///
167- /// [`Error`]: ../error/trait.Error.html
168- ///
169165 /// # Examples
170166 ///
171167 /// ```
@@ -199,8 +195,6 @@ impl<'a, E: Error + Send + Sync + 'a> From<E> for Box<dyn Error + Send + Sync +
199195 /// Converts a type of [`Error`] + [`Send`] + [`Sync`] into a box of
200196 /// dyn [`Error`] + [`Send`] + [`Sync`].
201197 ///
202- /// [`Error`]: ../error/trait.Error.html
203- ///
204198 /// # Examples
205199 ///
206200 /// ```
@@ -238,8 +232,6 @@ impl<'a, E: Error + Send + Sync + 'a> From<E> for Box<dyn Error + Send + Sync +
238232impl From < String > for Box < dyn Error + Send + Sync > {
239233 /// Converts a [`String`] into a box of dyn [`Error`] + [`Send`] + [`Sync`].
240234 ///
241- /// [`Error`]: ../error/trait.Error.html
242- ///
243235 /// # Examples
244236 ///
245237 /// ```
@@ -283,8 +275,6 @@ impl From<String> for Box<dyn Error + Send + Sync> {
283275impl From < String > for Box < dyn Error > {
284276 /// Converts a [`String`] into a box of dyn [`Error`].
285277 ///
286- /// [`Error`]: ../error/trait.Error.html
287- ///
288278 /// # Examples
289279 ///
290280 /// ```
@@ -306,8 +296,6 @@ impl From<String> for Box<dyn Error> {
306296impl < ' a > From < & str > for Box < dyn Error + Send + Sync + ' a > {
307297 /// Converts a [`str`] into a box of dyn [`Error`] + [`Send`] + [`Sync`].
308298 ///
309- /// [`Error`]: ../error/trait.Error.html
310- ///
311299 /// # Examples
312300 ///
313301 /// ```
@@ -329,8 +317,6 @@ impl<'a> From<&str> for Box<dyn Error + Send + Sync + 'a> {
329317impl From < & str > for Box < dyn Error > {
330318 /// Converts a [`str`] into a box of dyn [`Error`].
331319 ///
332- /// [`Error`]: ../error/trait.Error.html
333- ///
334320 /// # Examples
335321 ///
336322 /// ```
@@ -350,9 +336,6 @@ impl From<&str> for Box<dyn Error> {
350336impl < ' a , ' b > From < Cow < ' b , str > > for Box < dyn Error + Send + Sync + ' a > {
351337 /// Converts a [`Cow`] into a box of dyn [`Error`] + [`Send`] + [`Sync`].
352338 ///
353- /// [`Cow`]: ../borrow/enum.Cow.html
354- /// [`Error`]: ../error/trait.Error.html
355- ///
356339 /// # Examples
357340 ///
358341 /// ```
@@ -374,9 +357,6 @@ impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + Send + Sync + 'a> {
374357impl < ' a > From < Cow < ' a , str > > for Box < dyn Error > {
375358 /// Converts a [`Cow`] into a box of dyn [`Error`].
376359 ///
377- /// [`Cow`]: ../borrow/enum.Cow.html
378- /// [`Error`]: ../error/trait.Error.html
379- ///
380360 /// # Examples
381361 ///
382362 /// ```
@@ -703,7 +683,7 @@ impl dyn Error {
703683 /// assert!(iter.next().is_none());
704684 /// ```
705685 ///
706- /// [`source`]: trait. Error.html#method. source
686+ /// [`source`]: Error:: source
707687 #[ unstable( feature = "error_iter" , issue = "58520" ) ]
708688 #[ inline]
709689 pub fn chain ( & self ) -> Chain < ' _ > {
@@ -715,8 +695,6 @@ impl dyn Error {
715695///
716696/// If you want to omit the initial error and only process
717697/// its sources, use `skip(1)`.
718- ///
719- /// [`Error`]: trait.Error.html
720698#[ unstable( feature = "error_iter" , issue = "58520" ) ]
721699#[ derive( Clone , Debug ) ]
722700pub struct Chain < ' a > {
0 commit comments