Commit Graph

27779 Commits

Author SHA1 Message Date
Corey Richardson 8f385fc2e0 middle: trans: callee: remove dead code 2014-04-02 11:17:22 -04:00
Corey Richardson a2290ccbc5 middle: trans: cabi: remove dead code 2014-04-02 11:17:21 -04:00
Corey Richardson 5e2b5221ca middle: trans: builder: ignore dead code 2014-04-02 11:17:21 -04:00
Corey Richardson 8de5eec222 middle: trans: build: remove dead code 2014-04-02 11:17:21 -04:00
Corey Richardson 49dc0193bd middle: trans: base: remove dead code 2014-04-02 11:17:21 -04:00
Corey Richardson a9bf099000 middle: trans: adt: remove dead code 2014-04-02 11:17:21 -04:00
Corey Richardson ee82233a1e middle: region: remove dead code 2014-04-02 11:17:20 -04:00
Corey Richardson 39fce48324 middle: pat_util: remove dead code 2014-04-02 11:17:20 -04:00
Corey Richardson dc59df776a middle: mem_categorization: remove dead code 2014-04-02 11:17:20 -04:00
Corey Richardson 393bc08762 middle: lang_items: allow dead code 2014-04-02 11:17:20 -04:00
Corey Richardson 35c98a8378 middle: kind: remove dead code 2014-04-02 11:17:20 -04:00
Corey Richardson fb19d680f4 middle: graph: ignore dead code 2014-04-02 11:17:20 -04:00
Corey Richardson 6ed787155d middle: freevars: remove dead code 2014-04-02 11:17:19 -04:00
Corey Richardson 4e5409ba91 middle: dataflow: remove dead code 2014-04-02 11:17:19 -04:00
Corey Richardson d03e647a0a middle: const_eval: remove dead code 2014-04-02 11:17:19 -04:00
Corey Richardson 2013488bee middle: cfg: allow dead code 2014-04-02 11:17:19 -04:00
Corey Richardson 77d1978f8e middle: borrowck: remove dead code 2014-04-02 11:17:19 -04:00
Corey Richardson 0ce17d941d middle: astencode: remove dead code 2014-04-02 11:17:18 -04:00
Corey Richardson 194242f096 metadata: filesearch: remove dead code 2014-04-02 11:17:18 -04:00
Corey Richardson 0a0ab4031c metadata: decoder: remove dead code 2014-04-02 11:17:15 -04:00
bors 3786b552a6 auto merge of #13248 : tedhorst/rust/master, r=alexcrichton 2014-04-02 08:16:42 -07:00
Benjamin Herr 78af0f7636 doc: Remove dated "libgreen is default" statement. 2014-04-02 16:56:31 +02:00
bors 21273d52f5 auto merge of #13177 : huonw/rust/devec-rand, r=alexcrichton
Remove ~[] from librand, rename Rng.shuffle_mut to .shuffle.

See commits.
2014-04-02 06:01:44 -07:00
Huon Wilson 846d1c7d0d rand: replace Rng.shuffle's functionality with .shuffle_mut.
Deprecates the `shuffle_mut` name in favour of `shuffle` too.

In future there will be many different types of owned
vectors/vector-likes (e.g. DST's ~[], Vec, SmallVec, Rope, ...), and so
privileging just `Vec` with the "functional" `shuffle` method is silly.
2014-04-02 23:29:29 +11:00
Huon Wilson c5d85560a9 rand: remove (almost) all ~[]'s from Vec.
There are a few instances of them in tests which are using functions
from std etc. that still are using ~[].
2014-04-02 23:29:28 +11:00
bors c987134865 auto merge of #13243 : huonw/rust/cellshow, r=thestinger
std: fix Cell's Show instance.

Previously it was printing the address of the Unsafe contained in the
Cell (i.e. the address of the Cell itself). This is clearly useless, and
was presumably a mistake due to writing `*&` instead of `&*`.

However, this later expression is likely also incorrect, since it takes
a reference into a Cell while other user code is executing (i.e. the
Show instance for the contained type), hence the contents should just be
copied out.
2014-04-02 02:21:39 -07:00
bors 80a9ff2a2d auto merge of #13242 : huonw/rust/release-note-edits, r=alexcrichton
Minor adjustments to the 0.10 release notes.

Mention another lint, fix a typo, and rearrange some things.
2014-04-02 00:06:40 -07:00
bors b06b3667af auto merge of #13235 : klutzy/rust/doc-faq-win, r=alexcrichton 2014-04-01 22:41:42 -07:00
bors af0783aa1f auto merge of #13241 : stepancheg/rust/push-all, r=alexcrichton
* push_all* operations should reserve capacity before pushing data to avoid unnecessary reallocations
* reserve_exact should never shrink, as specified in documentation
2014-04-01 21:21:48 -07:00
bors e63346b9d8 auto merge of #13240 : sfackler/rust/time-pub, r=alexcrichton 2014-04-01 16:41:53 -07:00
Huon Wilson bf8dedd304 Minor adjustments to the 0.10 release notes.
Mention another lint, fix a typo, and rearrange some things.
2014-04-02 09:01:08 +11:00
bors 361d79142a auto merge of #13234 : seanmonstar/rust/pr/12947, r=alexcrichton
this is useful for macros like vec! which construct containers

rebase of #12947 because I'm impatient.
2014-04-01 14:46:47 -07:00
bors 1217cfb9e7 auto merge of #13225 : thestinger/rust/num, r=cmr
The `Float` trait methods will be usable as functions via UFCS, and
we came to a consensus to remove duplicate functions like this a long
time ago.

It does still make sense to keep the duplicate functions when the trait
methods are static, unless the decision to leave out the in-scope trait
name resolution for static methods changes.
2014-04-01 13:26:49 -07:00
Stepan Koltsov 026d206aa1 Reimplement Vec::push_all* with .extend
It is shorter and also fixes missed reserve call.
2014-04-01 20:16:59 +00:00
Stepan Koltsov 08e95a87b8 Vec::reserve_exact should not shrink
reserve_exact should not shrink according to documentation.
2014-04-01 20:16:59 +00:00
bors b71c02e512 auto merge of #13115 : huonw/rust/rand-errors, r=alexcrichton
move errno -> IoError converter into std, bubble up OSRng errors

Also adds a general errno -> `~str` converter to `std::os`, and makes the failure messages for the things using `OSRng` (e.g. (transitively) the task-local RNG, meaning hashmap initialisation failures aren't such a black box).
2014-04-01 11:11:51 -07:00
Ted Horst a8308fbb76 make Cmplx fields public 2014-04-01 12:58:13 -05:00
Corey Richardson 3f8d1588e8 metadata: cstore: remove dead code 2014-04-01 10:19:10 -04:00
Corey Richardson 6ce37e8dd7 metadata: csearch: remove dead code 2014-04-01 10:18:53 -04:00
Corey Richardson 86e6a80d8d metadata: common: remove dead code 2014-04-01 10:17:32 -04:00
Corey Richardson aae9594932 lib: llvm: remove dead code 2014-04-01 10:17:18 -04:00
Corey Richardson 59645c1209 back: link: remove dead code 2014-04-01 10:16:58 -04:00
Corey Richardson 74ddaa27e7 back: archive: remove dead code 2014-04-01 10:16:46 -04:00
Corey Richardson 5a4c8a9c57 back: abi: remove dead code 2014-04-01 10:12:02 -04:00
Huon Wilson 50fca0fbbb std: fix Cell's Show instance.
Previously it was printing the address of the Unsafe contained in the
Cell (i.e. the address of the Cell itself). This is clearly useless, and
was presumably a mistake due to writing `*&` instead of `&*`.

However, this later expression is likely also incorrect, since it takes
a reference into a Cell while other user code is executing (i.e. the
Show instance for the contained type), hence the contents should just be
copied out.
2014-04-01 23:58:31 +11:00
Corey Richardson 3b4a5174c0 rustc: make comments on CrateContext doc comments 2014-04-01 07:11:23 -04:00
Daniel Micay 5e12e1b1a4 remove the cmath module
This is an implementation detail of the `f32` and `f64` modules and it
should not be public. It renames many functions and leaves out any
provided by LLVM intrinsics, so it is not a sensible binding to the C
standard library's math library and will never be a stable target.

This also removes the abuse of link_name so that this can be switched to
using automatically generated definitions in the future. This also
removes the `scalbn` binding as it is equivalent to `ldexp` when
`FLT_RADIX` is 2, which must always be true for Rust.
2014-04-01 06:54:26 -04:00
Huon Wilson bc7a2d72a3 rand: bubble up IO messages futher.
The various ...Rng::new() methods can hit IO errors from the OSRng they use,
and it seems sensible to expose them at a higher level. Unfortunately, writing
e.g. `StdRng::new().unwrap()` gives a much poorer error message than if it
failed internally, but this is a problem with all `IoResult`s.
2014-04-01 20:46:10 +11:00
Huon Wilson 0e8c949786 rand: bubble up IO errors when creating an OSRng. 2014-04-01 20:46:09 +11:00
Huon Wilson 119289b0f2 std: migrate the errno -> IoError converter from libnative.
This also adds a direct `errno` -> `~str` converter, rather than only
being possible to get a string for the very last error.
2014-04-01 20:46:09 +11:00