rust/src/libcore
Alex Crichton e5da6a71a6 std: Stabilize unit, bool, ty, tuple, arc, any
This commit applies stability attributes to the contents of these modules,
summarized here:

* The `unit` and `bool` modules have become #[unstable] as they are purely meant
  for documentation purposes and are candidates for removal.

* The `ty` module has been deprecated, and the inner `Unsafe` type has been
  renamed to `UnsafeCell` and moved to the `cell` module. The `marker1` field
  has been removed as the compiler now always infers `UnsafeCell` to be
  invariant. The `new` method i stable, but the `value` field, `get` and
  `unwrap` methods are all unstable.

* The `tuple` module has its name as stable, the naming of the `TupleN` traits
  as stable while the methods are all #[unstable]. The other impls in the module
  have appropriate stability for the corresponding trait.

* The `arc` module has received the exact same treatment as the `rc` module
  previously did.

* The `any` module has its name as stable. The `Any` trait is also stable, with
  a new private supertrait which now contains the `get_type_id` method. This is
  to make the method a private implementation detail rather than a public-facing
  detail.

  The two extension traits in the module are marked #[unstable] as they will not
  be necessary with DST. The `is` method is #[stable], the as_{mut,ref} methods
  have been renamed to downcast_{mut,ref} and are #[unstable].

  The extension trait `BoxAny` has been clarified as to why it is unstable as it
  will not be necessary with DST.

This is a breaking change because the `marker1` field was removed from the
`UnsafeCell` type. To deal with this change, you can simply delete the field and
only specify the value of the `data` field in static initializers.

[breaking-change]
2014-07-26 13:12:20 -07:00
..
fmt std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
num Add examples for Checked[Add|Sub|Mul|Div] 2014-07-24 07:26:08 -07:00
tuple std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
any.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
atomics.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
bool.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
cell.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
char.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
clone.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
cmp.rs core: Stabliize core::cmp 2014-07-18 15:59:54 -07:00
collections.rs Document some trait methods. 2014-07-19 12:26:18 +02:00
default.rs auto merge of #15806 : treeman/rust/std-doc, r=alexcrichton 2014-07-20 17:46:32 +00:00
failure.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
finally.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
intrinsics.rs libcore: Reexport a couple of widely-used low-level intrinsics to reduce 2014-07-09 22:28:23 -07:00
iter.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
kinds.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
lib.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
macros.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
mem.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
ops.rs librustc: Make bare functions implement the FnMut trait. 2014-07-24 07:26:22 -07:00
option.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
prelude.rs librustc: Implement unboxed closures with mutable receivers 2014-07-18 09:01:37 -07:00
ptr.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
raw.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
result.rs Document that Result.unwrap prints the Err's value 2014-07-14 10:20:29 +02:00
simd.rs Fix spelling errors in comments. 2014-06-08 13:39:42 -04:00
slice.rs libcore: Fix Items iterator for zero sized types. 2014-07-05 02:49:03 -07:00
str.rs librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
ty.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00