Alex Crichton
46abacfdfe
rustc: Require that vector indices are uints
...
This commit tightens up the restriction on types used to index slices to require
exactly `uint` indices. Previously any integral type was accepted, but this
leads to a few subtle problems:
* 64-bit indices don't make much sense on 32-bit systems
* Signed indices for slices used as negative indexing isn't implemented
This was discussed at the recent work week, and also has some discussion on
issue #10453 .
Closes #10453
2014-04-02 15:56:31 -07:00
Corey Richardson
46790a7d27
util: ppaux: remove dead code
2014-04-02 11:17:24 -04:00
Corey Richardson
841eb1c56f
util: common: remove dead code
2014-04-02 11:17:24 -04:00
Corey Richardson
fdcb104517
middle: typeck: rscope: remove dead code
2014-04-02 11:17:24 -04:00
Corey Richardson
3bd0a37c0b
middle: typeck: remove dead code
2014-04-02 11:17:24 -04:00
Corey Richardson
009389f051
middle: typeck: infer: resolve: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
167c29ff3f
middle: typeck: infer: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
ce47c91bfc
middle: typeck: infer: lub: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
1a98ec83c1
middle: typeck: infer: combine: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
dcb01ff573
middle: typeck: check: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
39f839d9ee
middle: ty: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
b4653941d6
middle: trans: type_: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
53b70a83c6
middle: trans: tvec: remove dead code
2014-04-02 11:17:23 -04:00
Corey Richardson
4bc2c3b2b4
middle: trans: reflect: remove dead code
2014-04-02 11:17:22 -04:00
Corey Richardson
32753ed811
middle: trans: meth: remove dead code
2014-04-02 11:17:22 -04:00
Corey Richardson
f9973103c5
middle: trans: datum: remove dead code
2014-04-02 11:17:22 -04:00
Corey Richardson
9dd185c255
middle: trans: context: remove dead code
2014-04-02 11:17:22 -04:00
Corey Richardson
e53f48be34
middle: trans: common: remove dead code
2014-04-02 11:17:22 -04:00
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
Felix S. Klock II
3cbd98e43f
Two fixes to get make check-stage1
working.
...
1. Fix a long-standing typo in the makefile: the relevant
CTEST_NAME here is `rpass-full` (with a dash), not
`rpass_full`.
2. The rpass-full tests depend on the complete set of target
libraries. Therefore, the rpass-full tests need to use
the dependencies held in the CSREQ-prefixed variable, not
the TLIBRUSTC_DEFAULT-prefixed variable.
2014-04-02 11:47:19 +02:00
Felix S. Klock II
2cddd68686
Avoid injecting unfulfilled dependence in compiletest on libnative.
2014-04-02 11:44:04 +02: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