about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-08 20:53:23 +0000
committerbors <bors@rust-lang.org>2015-10-08 20:53:23 +0000
commit11eda66df859f53754788044476af753a012332f (patch)
tree7de564e5a7af1478277f7eb73c7848716e42b26b /src/libstd/sys/unix/stack_overflow.rs
parente38210b195a4aaf91f3daa37dfcfd7059bd22ddc (diff)
parentea1f886e502bc826cd4e241d06ffd0ad26e95d00 (diff)
downloadrust-11eda66df859f53754788044476af753a012332f.tar.gz
rust-11eda66df859f53754788044476af753a012332f.zip
Auto merge of #27197 - nwin:generic-cursor-impl, r=alexcrichton
This is a revival of #23364. Github didn’t recognize my updated branch there.

The cursor implementation now uses `AsRef` which means that fixed-sized array can now be used with `Cursor`. Besides that, the generic implementation simplifies the code as the macro can be avoided.

The only drawback is, that specialized implementation for fixed-sized arrays are now ruled out unless [RFC#1210](https://github.com/rust-lang/rfcs/pull/1210) is accepted & implemented.

`Box<[u8]>` cannot be used yet, but that should be mitigated by [implementing `AsRef` for `Box` and friends](https://internals.rust-lang.org/t/forward-implement-traits-on-smart-pointers-make-smart-pointers-more-transparent/2380/3). I will submit a separate PR for that later as it is an orthogonal issue.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions