]> git.lizzy.rs Git - rust.git/commit
Stabilization for `owned` (now `boxed`) and `cell`
authorAaron Turon <aturon@mozilla.com>
Thu, 10 Jul 2014 21:19:17 +0000 (14:19 -0700)
committerAaron Turon <aturon@mozilla.com>
Sun, 13 Jul 2014 19:52:51 +0000 (12:52 -0700)
commite0ede9c6b3894851b800a323757857eba07943b5
tree0b97e02f7dad2e56cced3dbf1542b924bd6cfa1f
parentb57d272e9908e164a72bd1a688141031705e1208
Stabilization for `owned` (now `boxed`) and `cell`

This PR is the outcome of the library stabilization meeting for the
`liballoc::owned` and `libcore::cell` modules.

Aside from the stability attributes, there are a few breaking changes:

* The `owned` modules is now named `boxed`, to better represent its
  contents. (`box` was unavailable, since it's a keyword.) This will
  help avoid the misconception that `Box` plays a special role wrt
  ownership.

* The `AnyOwnExt` extension trait is renamed to `BoxAny`, and its `move`
  method is renamed to `downcast`, in both cases to improve clarity.

* The recently-added `AnySendOwnExt` extension trait is removed; it was
  not being used and is unnecessary.

[breaking-change]
50 files changed:
src/liballoc/boxed.rs [new file with mode: 0644]
src/liballoc/lib.rs
src/liballoc/owned.rs [deleted file]
src/libcollections/btree.rs
src/libcollections/dlist.rs
src/libcollections/hash/mod.rs
src/libcollections/treemap.rs
src/libcollections/trie.rs
src/libcore/cell.rs
src/librustrt/args.rs
src/librustrt/at_exit_imp.rs
src/librustrt/lib.rs
src/librustrt/local.rs
src/librustrt/local_data.rs
src/librustrt/local_ptr.rs
src/librustrt/rtio.rs
src/librustrt/stack.rs
src/librustrt/task.rs
src/librustrt/thread.rs
src/librustrt/unwind.rs
src/libstd/collections/lru_cache.rs
src/libstd/failure.rs
src/libstd/io/fs.rs
src/libstd/io/mod.rs
src/libstd/io/net/tcp.rs
src/libstd/io/net/udp.rs
src/libstd/io/net/unix.rs
src/libstd/io/pipe.rs
src/libstd/io/process.rs
src/libstd/io/signal.rs
src/libstd/io/stdio.rs
src/libstd/io/timer.rs
src/libstd/io/util.rs
src/libstd/lib.rs
src/libstd/prelude.rs
src/libstd/task.rs
src/libsync/atomics.rs
src/libsync/comm/mod.rs
src/libsync/comm/oneshot.rs
src/libsync/comm/select.rs
src/libsync/comm/shared.rs
src/libsync/comm/stream.rs
src/libsync/comm/sync.rs
src/libsync/deque.rs
src/libsync/mpsc_queue.rs
src/libsync/mutex.rs
src/libsync/spsc_queue.rs
src/test/compile-fail/new-box-syntax-bad.rs
src/test/run-pass/new-box-syntax.rs
src/test/run-pass/unit-like-struct-drop-run.rs