Brian Anderson
5c92a8e054
Use the same html_root_url for all docs
2014-10-09 10:50:13 -07:00
Brian Anderson
6beddcfd83
Revert "Update html_root_url for 0.12.0 release"
...
This reverts commit 2288f33230 .
2014-10-09 10:34:34 -07:00
Brian Anderson
158eaa643b
0.12.0 release
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABAgAGBQJUNrj+AAoJEIWrlub6G+X+4TMQAIlyIoTpbZfA7MgaqHmrqp/O
DkWH4sjoiTL3pdqHitbaJWFzStLjmM+hzOKYVYxXJGqpHuZv7pbnN2sQCKvJ6m9E
htojoy9ZVeOUjkqz3+PYc6mh+SuQq4bpAhnnt60tLSxZCda7uTpdTcsOgDlwhu8P
/YIbnBHo6brcQi6kEK27uN7U2MsluRR/ZhAmZH1mvrTtjKrGsKTEdta2NW1tUzNT
sDluM9D0/WFjwSA9OohjtpUI7KYudqChOCRaqREgNq6xc/9at/TQHULsjzxLFIiC
tAttF7ZZ2s1TmS4qzmx3AAWl8n8xYrDo+CpfPqKvSGwDegfHN9Epa+24Cdf2Q5GO
9RSup89NlNNo3tjmK+G1cUqi/K9RseiZNPSJSoLlR2L9QFg/VFEVbcaZX+oX+CQF
pfWkKqsfLqj50EimO+vuXRZhShHlu/McOdN0cd+S0KEGdd7ngqU3d7YJf9Ppm1mV
d1VUqnPxvDrGQTGqk4cpGMIv+LmT6vY2iix3ha583zMYcU9VWrC9VEmR3I4XZefE
UgsbAx2jIgagWa6ylDpes7X8dn/7qj3BA6l3Bt9aGrs9KnyQ+a3xOyz8dFvRJwks
T8izOhfJXpxW4CLFZjDIQ9RD/joJuvuqTSIqf7zGIxIbMUQFB9EC/Rn7a3ftidds
aZVZSl2li1vOa3DucW64
=4lHl
-----END PGP SIGNATURE-----
Merge tag '0.12.0'
0.12.0 release
2014-10-09 09:36:30 -07:00
bors
218cb4bc99
auto merge of #17748 : mahkoh/rust/int_slice, r=aturon
2014-10-08 21:22:32 +00:00
Julian Orth
bd527909e7
add {Imm,M}utableIntSlice
2014-10-08 20:51:31 +02:00
Brian Anderson
2288f33230
Update html_root_url for 0.12.0 release
2014-10-07 11:18:50 -07:00
bors
e62ef37cfa
auto merge of #17807 : nick29581/rust/slice6, r=aturon
...
r? @aturon
2014-10-07 06:17:11 +00:00
Nick Cameron
eb2fdc8b06
Reinstate AsSlice impls for Option and Result
2014-10-07 15:55:52 +13:00
Nick Cameron
3b0550c3a9
Rename slicing methods
2014-10-07 15:49:53 +13:00
Nick Cameron
cd21e4a72c
Rename slice::Slice
2014-10-07 15:49:53 +13:00
Nick Cameron
2d3823441f
Put slicing syntax behind a feature gate.
...
[breaking-change]
If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07 15:49:53 +13:00
Nick Cameron
59976942ea
Use slice syntax instead of slice_to, etc.
2014-10-07 15:49:53 +13:00
Aaron Turon
07cfc252a1
Remove core::any::AnyPrivate
...
[Previously](e5da6a71a6 ),
the `Any` trait was split into a private portion and an (empty) public
portion, in order to hide the implementation strategy used for
downcasting. However, the [new
rules](e9ad12c0ca )
for privacy forbid `AnyPrivate` from actually being private.
This patch thus reverts the introduction of `AnyPrivate`.
Although this is unlikely to break any real code, it removes a public
trait and is therefore a:
[breaking-change]
2014-10-06 16:32:30 -07:00
bors
b5ba2f5517
auto merge of #17820 : pnkfelix/rust/fsk-improve-binary_search-doc2, r=alexcrichton
...
Add example to doc for `slice::ImmutableSlice::binary_search`.
Fix #17817 .
2014-10-06 20:27:14 +00:00
Felix S. Klock II
d1e0f7259e
Add example to doc for slice::ImmutableSlice::binary_search.
...
Fix #17817 .
2014-10-06 15:59:22 +02:00
bors
5660db2508
auto merge of #16970 : kmcallister/rust/llvm-unreachable, r=thestinger
...
I'm not sure how to add an automated test for this.
2014-10-05 07:17:09 +00:00
Keegan McAllister
401aeaf6d3
Add intrinsics::unreachable
2014-10-04 20:09:09 -07:00
Peter Minten
2bb7956a83
Make examples for AtomicInt refer to AtomicInt
...
The examples for fetch_or, fetch_and and fetch_xor for
std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
2014-10-04 13:29:09 +02:00
Alex Crichton
7ae802f57b
rollup merge of #17666 : eddyb/take-garbage-out
...
Conflicts:
src/libcollections/lib.rs
src/libcore/lib.rs
src/librustdoc/lib.rs
src/librustrt/lib.rs
src/libserialize/lib.rs
src/libstd/lib.rs
src/test/run-pass/issue-8898.rs
2014-10-02 14:53:18 -07:00
Alex Crichton
8bb5a674a4
rollup merge of #16993 : dschatzberg/items-bounds
2014-10-02 14:49:42 -07:00
Aaron Turon
d2ea0315e0
Revert "Use slice syntax instead of slice_to, etc."
...
This reverts commit 40b9f5ded5 .
2014-10-02 11:48:07 -07:00
Aaron Turon
c0c6c89589
Revert "Remove the _ suffix from slice methods."
...
This reverts commit df2f1fa768 .
2014-10-02 11:47:58 -07:00
Aaron Turon
7bf56df4c8
Revert "Put slicing syntax behind a feature gate."
...
This reverts commit 95cfc35607 .
2014-10-02 11:47:51 -07:00
Aaron Turon
2f365ffdad
Revert "Review and rebasing changes"
...
This reverts commit 6e0611a487 .
2014-10-02 11:47:38 -07:00
Dan Schatzberg
4184396f28
Add lifetime bounds on Items and MutItems.
...
This also requires a fix for Vec's MoveItems. This resolves issue #16941
2014-10-02 11:22:05 -04:00
Eduard Burtescu
db55e70c97
syntax: mark the managed_boxes feature as Removed.
2014-10-02 17:02:03 +03:00
Eduard Burtescu
382f1bceb4
core: remove raw::GcBox.
2014-10-02 16:36:00 +03:00
Nick Cameron
6e0611a487
Review and rebasing changes
2014-10-02 14:50:22 +13:00
Nick Cameron
95cfc35607
Put slicing syntax behind a feature gate.
...
[breaking-change]
If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02 13:23:36 +13:00
Nick Cameron
df2f1fa768
Remove the _ suffix from slice methods.
...
Deprecates slicing methods from ImmutableSlice/MutableSlice in favour of slicing syntax or the methods in Slice/SliceMut.
Closes #17273 .
2014-10-02 13:19:45 +13:00
Nick Cameron
40b9f5ded5
Use slice syntax instead of slice_to, etc.
2014-10-02 13:19:45 +13:00
bors
fe93a549a4
auto merge of #17132 : reem/rust/any-static-bound, r=alexcrichton
...
This bound is already implicit through the AnyPrivate trait,
but since it is not explicit, you still have to write Box<Any + 'static>,
even though Any can only be 'static.
Introducing the 'static bound here makes this bound explicit, making
Box<Any> legal.
2014-10-01 05:32:16 +00:00
Jonathan Reem
0cf60b6bb8
Bound Any with 'static
...
This bound is already implicit through the AnyPrivate trait,
but since it is not explicit, you still have to write Box<Any + 'static>,
even though Any can only be 'static.
Introducing the 'static bound here makes this bound explicit, making
Box<Any> legal.
2014-09-30 18:40:07 -07:00
Patrick Walton
416144b827
librustc: Forbid .. in range patterns.
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
[breaking-change]
2014-09-30 09:11:26 -07:00
Alex Crichton
1ae44c2059
rollup merge of #17621 : sfackler/new-snap
2014-09-29 08:17:18 -07:00
Alex Crichton
ea3a3e9a7f
rollup merge of #17602 : Tobba/defailbloat-static
2014-09-29 08:14:32 -07:00
Alex Crichton
735d16b1b0
rollup merge of #17585 : sfackler/string-slice
2014-09-29 08:14:16 -07:00
Alex Crichton
e44393a953
rollup merge of #17582 : kmcallister/gc-box
2014-09-29 08:14:12 -07:00
Alex Crichton
bb84afeba1
rollup merge of #17564 : japaric/fix-slicemut-docs
2014-09-29 08:12:42 -07:00
Alex Crichton
e786891d41
rollup merge of #17557 : sfackler/fuse-example
2014-09-29 08:12:37 -07:00
Steven Fackler
fa419d3d21
Register new snapshots
2014-09-28 19:28:48 -07:00
Tobba
3b9732eae7
Defailbloat fail!(&'static str)
2014-09-28 02:02:31 +02:00
Steven Fackler
aa2814fd4e
Implement Slice for String and str
...
Closes #17502
2014-09-26 21:48:49 -07:00
bors
606bf110bc
auto merge of #17469 : sfackler/rust/into-result, r=aturon
...
This is the inverse of `Result::ok` and helps to bridge `Option` and
`Result` based APIs.
2014-09-27 04:02:58 +00:00
Keegan McAllister
f8a180b36e
Rename raw::Box to raw::GcBox
...
Fixes #17470 .
2014-09-26 19:54:27 -07:00
Jorge Aparicio
f57e9d0cc8
Fix SliceMut documentation
...
The syntax sugar is `[mut from..to]` not `[from..to]`
2014-09-26 11:53:47 -05:00
Steven Fackler
0c8878d042
Add Option::{ok_or, ok_or_else}
...
These are the inverses of `Result::ok` and help to bridge `Option` and
`Result` based APIs.
2014-09-26 09:11:53 -07:00
Steven Fackler
a4844a65e2
Fix Iterator::fuse example
...
The for loop would *always* exaust the iterator previously, which seems
like behavior that was not intended. It's still kind of a weird
function.
2014-09-25 23:06:34 -07:00
Aaron Turon
af3cfcc9ea
Fallout from deprecation
2014-09-25 17:46:03 -07:00
Aaron Turon
4f509a1e47
Stabilize mutable slice API
...
This commit is another in the series of vector slice API
stabilization. The focus here is the *mutable* slice API.
Largely, this API inherits the stability attributes [previously
assigned](https://github.com/rust-lang/rust/pull/16332 ) to the analogous
methods on immutable slides. It also adds comments to a few `unstable`
attributes that were previously missing them.
In addition, the commit adds several `_mut` variants of APIs that were
missing:
- `init_mut`
- `head_mut`
- `tail_mut`
- `splitn_mut`
- `rsplitn_mut`
Some of the unsafe APIs -- `unsafe_set`, `init_elem`, and `copy_memory`
-- were deprecated in favor of working through `as_mut_ptr`, to simplify
the API surface.
Due to deprecations, this is a:
[breaking-change]
2014-09-25 17:46:03 -07:00