about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-04-08 17:01:03 -0700
committerAaron Turon <aturon@mozilla.com>2015-04-09 08:54:09 -0700
commite3f324cd9d7b27eda6133c407a4751a8b0217631 (patch)
treea04a2ae8ca60170f820584b68abff900665b9826 /src/libstd/sys/unix/stack_overflow.rs
parentff804778c8d69d7835cf7076886ac5dac9a39659 (diff)
downloadrust-e3f324cd9d7b27eda6133c407a4751a8b0217631.tar.gz
rust-e3f324cd9d7b27eda6133c407a4751a8b0217631.zip
Improve bounds in Iterator API
This commit changes `Iterator`'s API by:

* Generalizing bounds from `Iterator` to `IntoIterator` whenever
  possible, matching the semantics and ergonomics of `for` loops.

* Tightens up a few method-level bounds so that you get an error
  earlier. For example, `rev` did not require `DoubleEndedIterator` even
  though the result is only an `Iterator` when the original iterator was
  double-ended.

Closes #23587

The bound-tightening is technically a:

[breaking-change]

but no code should break in practice.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions