Skip to content
Merged
Changes from 4 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a8de713
Improve rendering of crate features via doc(cfg)
Nemo157 Aug 9, 2020
234ec95
Render longhand multiple crate/target features nicer
Nemo157 Aug 9, 2020
3328bd9
Add long cfg description to tooltip on short description
Nemo157 Aug 18, 2020
511ee05
Use intra-doc links in `core::macros`
camelid Aug 25, 2020
c73d4cd
Clean up E0761 explanation
GuillaumeGomez Aug 26, 2020
0cca597
Fix potential UB in align_offset docs
elichai Aug 26, 2020
16d8d4b
Error use explicit intra-doc link and fix text
pickfire Aug 26, 2020
9ea4593
Use [xxx()] rather than the [xxx] function
pickfire Aug 26, 2020
39f5ebc
Fix typo in `std::hint::black_box` docs
aticu Aug 26, 2020
ed9df28
Fix ICE due to carriage return w/ multibyte char
JulianKnodt Aug 27, 2020
3a814f3
Reduce duplicate doc link in error
pickfire Aug 27, 2020
df975cf
Rename rustdoc/test -> rustdoc/doctest
matklad Aug 27, 2020
c933d69
Use intra-doc links in `core::future::future`
camelid Aug 26, 2020
707298d
Use intra-doc links in `core::num::dec2flt`
camelid Aug 26, 2020
65b37ce
fix wording in release notes
tinaun Aug 27, 2020
dd96996
Add InstrProfilingPlatformFuchsia.c to profiler_builtins
richkadel Aug 27, 2020
55cd243
Adds --bless support to test/run-make-fulldeps
richkadel Aug 27, 2020
39cd184
Remove unnecessary intra-doc link
camelid Aug 28, 2020
8730c2b
Rollup merge of #75330 - Nemo157:improve-doc-cfg-features, r=Guillaum…
pietroalbini Aug 28, 2020
521b205
Rollup merge of #75927 - camelid:intra-doc-links-for-core-macros, r=j…
pietroalbini Aug 28, 2020
bc55313
Rollup merge of #75941 - GuillaumeGomez:cleanup-e0761, r=Dylan-DPC
pietroalbini Aug 28, 2020
be1b304
Rollup merge of #75943 - elichai:2020-align_offset-docs, r=RalfJung
pietroalbini Aug 28, 2020
cbe3aef
Rollup merge of #75946 - pickfire:patch-8, r=jyn514
pietroalbini Aug 28, 2020
e027b57
Rollup merge of #75955 - camelid:intra-doc-links-for-future-and-dec2f…
pietroalbini Aug 28, 2020
0f1ffa8
Rollup merge of #75967 - aticu:blackbox_typo, r=Dylan-DPC
pietroalbini Aug 28, 2020
cd77b62
Rollup merge of #75972 - JulianKnodt:i70381, r=rollup
pietroalbini Aug 28, 2020
efd81b4
Rollup merge of #75989 - matklad:renamerustdoctest, r=GuillaumeGomez
pietroalbini Aug 28, 2020
730c68e
Rollup merge of #75996 - tinaun:patch-2, r=jonas-schievink
pietroalbini Aug 28, 2020
35496c2
Rollup merge of #75998 - richkadel:llvm-coverage-map-gen-6b.1, r=wesl…
pietroalbini Aug 28, 2020
0106ad4
Rollup merge of #76000 - richkadel:llvm-coverage-map-gen-6b.2, r=wesl…
pietroalbini Aug 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions library/std/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ use crate::string;
/// themselves through the [`Display`] and [`Debug`] traits, and may provide
/// cause chain information:
///
/// The [`source`] method is generally used when errors cross "abstraction
/// boundaries". If one module must report an error that is caused by an error
/// from a lower-level module, it can allow access to that error via the
/// [`source`] method. This makes it possible for the high-level module to
/// provide its own errors while also revealing some of the implementation for
/// debugging via [`source`] chains.
/// [`Error::source()`] is generally used when errors cross
/// "abstraction boundaries". If one module must report an error that is caused
/// by an error from a lower-level module, it can allow accessing that error
/// via [`Error::source()`]. This makes it possible for the high-level
/// module to provide its own errors while also revealing some of the
/// implementation for debugging via `source` chains.
///
/// [`Result<T, E>`]: Result
/// [`source`]: Error::source
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Error: Debug + Display {
/// The lower-level source of this error, if any.
Expand Down Expand Up @@ -636,7 +635,7 @@ impl dyn Error {
}

/// Returns an iterator starting with the current error and continuing with
/// recursively calling [`source`].
/// recursively calling [`Error::source`].
///
/// If you want to omit the current error and only use its sources,
/// use `skip(1)`.
Expand Down Expand Up @@ -686,8 +685,6 @@ impl dyn Error {
/// assert!(iter.next().is_none());
/// assert!(iter.next().is_none());
/// ```
///
/// [`source`]: Error::source
#[unstable(feature = "error_iter", issue = "58520")]
#[inline]
pub fn chain(&self) -> Chain<'_> {
Expand Down