about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2019-10-15 10:34:53 +0200
committerHarald Hoyer <harald@redhat.com>2019-10-22 16:52:05 +0200
commit7b9d50d14d0982b33a9288343792327e4e1d33cd (patch)
treec19adee8dbf4165eb4b532b483fac5264324ec8e /src/test/debuginfo/enum-thinlto.rs
parentda59656b3b2e2469d9bdae3c9c9e8cbacdd5e6f6 (diff)
downloadrust-7b9d50d14d0982b33a9288343792327e4e1d33cd.tar.gz
rust-7b9d50d14d0982b33a9288343792327e4e1d33cd.zip
rename Error::iter_chain() and remove Error::iter_sources()
Rename
* Error::iter_chain() -> Error::chain()
* ErrorIter -> Chain

Removed
* Error::iter_sources()

according to
https://github.com/rust-lang/rust/issues/58520

Rationale:

   1. Such iterators are helpful. They should better be stabilized sooner
      than later.
   2. self should be included. It is easy to .skip(1) it.
      Not including self is harmful because it is harder to add self
      to the iterator than to remove it.
   3. The chosen name should be telling and reflect the fact that self is
      included. `.chain()` was chosen because the iterator iterates over
      the chain of errors that is somehow included in self.
   4. The resulting iterator is named `Chain` because the `error::Chain`
      is what we want to have.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions