Commit Graph

17966 Commits

Author SHA1 Message Date
bors
ec9c7c324e auto merge of #6184 : kud1ing/rust/master, r=sanxiyn 2013-05-02 11:30:41 -07:00
gareth
23e97ae893 Remove errant trailing whitespace. 2013-05-02 19:26:52 +01:00
gareth
544ac620ba Convert most of rust_run_program.cpp to rust (issue #2674). 2013-05-02 19:26:52 +01:00
Seo Sanghyeon
a0d8873097 More accurate spans 2013-05-03 02:36:24 +09:00
bors
b6988843e8 auto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton
#6090

r? @brson
2013-05-02 10:21:40 -07:00
Daniel Micay
7aa10e616b make link_args use spaces as separators
Lots of linking arguments need to be passed as -Wl,--foo so giving the
comma meaning at the rustc layer makes those flags impossible to pass.

Multiple arguments can now be passed from a shell by quoting the
argument: --link-args='-lfoo -Wl,--as-needed'.
2013-05-02 12:46:58 -04:00
Jeong YunWon
35b91e2f73 Use static strings 2013-05-03 01:41:09 +09:00
bors
69316f06f6 auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis
This adds #[inline] to many very common string routines (e.g. `len`).

It also rewrites `repeat` to not use `+=` and make it O(n) rather than O(n^2), and also concat/connect(_slices) to reduce the overhead of reallocations, and constantly `set_len`ing (etc) in `push_str`. (The added complexity might not be worth the 20% speedup though.)
2013-05-02 09:18:37 -07:00
bors
1c64f7a0f7 auto merge of #6178 : erickt/rust/remove-drop, r=graydon
This patch removes ty::LegacyDtor, which is no longer used.
2013-05-02 08:18:38 -07:00
bors
89377eafe1 auto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger
Closes #6142
2013-05-02 07:15:39 -07:00
bors
326d9661b7 auto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger
`T: Iterator<A>` and `U: Iterator<A>` should be able to `chain` whether `T` and `U` are same or not.
2013-05-02 06:15:37 -07:00
Seo Sanghyeon
6883814a84 Remove codes related to modes 2013-05-02 21:56:20 +09:00
gifnksm
cff6aba76e libcore: Export core::from_str::FromStr from core::prelude 2013-05-02 20:42:54 +09:00
kud1ing
18c46b8fd4 The following code was generated by "src/etc/unicode.py" 2013-05-02 13:38:39 +03:00
kud1ing
6487cb221b Explain that the source code was generated by this script 2013-05-02 13:37:57 +03:00
Huon Wilson
5714e2c11b libcore: optimize string joining routines.
This makes concat/connect/connect_slices about 20% faster, and takes
`repeat` from O(n^2) to O(n), and lowers the constant factor.
2013-05-02 19:49:15 +10:00
Huon Wilson
afcb9e9d86 core: inlining on common functions 2013-05-02 18:03:43 +10:00
bors
d1f7220219 auto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneous-tests, r=pnkfelix
...e.

Fixes #4391.
2013-05-02 00:15:46 -07:00
Felix S. Klock II
9862cf703b More cases of [cfg(test)] instead of [test]. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
a636f5160a More cases of [cfg(test)] instead of [test]. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
46c2b5b045 Lets see if changing span_fatal to span_err gets me further through make check. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
880e300ed7 mod items need to be marked with cfg(test) not test. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
c14aa7eba8 mod items need to be marked with cfg(test) not test. 2013-05-02 08:55:08 +02:00
Felix S. Klock II
5f1a90ebe7 Issue 4391: rustc should not silently skip tests with erroneous signature. 2013-05-02 08:55:08 +02:00
bors
5458d7dddd auto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
This has happened to two people trying to get Rust working on other platforms. Since it won't compile either way, make a nicer message for it (which will also point them straight to the correct file).
2013-05-01 23:09:36 -07:00
bors
b42ea7f9ef auto merge of #6174 : sanxiyn/rust/static-string, r=brson 2013-05-01 22:06:37 -07:00
Young-il Choi
6f6dd86248 compiletest: configurable test dir for ARM 2013-05-02 13:16:01 +09:00
bors
efcabc41e4 auto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson
I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.
2013-05-01 21:00:39 -07:00
Erick Tryzelaar
c1de90cdb2 rustc: remove ty::LegacyDtor 2013-05-01 20:30:05 -07:00
Brendan Zabarauskas
e596128bd8 Remove 'Local Variable' comments 2013-05-02 13:22:04 +10:00
bors
a64aa28efe auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
I think whether vector element is mutable is decided by whether vector reference is mutable.
2013-05-01 19:54:36 -07:00
Daniel Micay
d6697e7027 pass along CFLAGS/LINK_FLAGS to libuv
Closes #6142
2013-05-01 22:13:33 -04:00
gifnksm
8a28970ed3 libcore: Make ChainIterator take two different-typed Iterators. 2013-05-02 11:10:13 +09:00
James Miller
1bd318421e Add error if RED_ZONE_SIZE doesn't get defined 2013-05-02 14:04:43 +12:00
Niko Matsakis
5f886342be syntax: fix up dynamic borrow errors in libsyntax 2013-05-01 21:50:32 -04:00
Niko Matsakis
fbaf8399c8 rustc: more fix for trans_lvalue rooted twice 2013-05-01 21:50:09 -04:00
Niko Matsakis
6210de9529 lang: fix code for maintaining borrow list 2013-05-01 21:47:09 -04:00
bors
b4bdc3f500 auto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon
implement `Clone` using `deriving(Clone)`.
2013-05-01 18:45:39 -07:00
Seo Sanghyeon
4294aed01b Use static strings 2013-05-02 10:36:30 +09:00
Seo Sanghyeon
0c34cab3db Take string slices 2013-05-02 10:32:13 +09:00
bors
d3e7c746dd auto merge of #6162 : graydon/rust/random-retry, r=graydon
Sample from the normal and exponential distributions using the Ziggurat
algorithm.
2013-05-01 17:45:37 -07:00
Niko Matsakis
d231c427e6 core: add more debugging printouts to borrowing 2013-05-01 20:23:07 -04:00
Niko Matsakis
ef6b24d135 rustc: fix the fact that trans_lvalue rooted twice 2013-05-01 20:22:08 -04:00
Niko Matsakis
14bf5c4fe7 rustc: adjust total number of lang items 2013-05-01 20:19:28 -04:00
Young-il Choi
3afd708e2a mk: minor fix for test.mk to support mutiple target test 2013-05-02 08:58:24 +09:00
bors
941154721e auto merge of #6161 : graydon/rust/glob-retry, r=graydon
This is a retry of pull #5832
2013-05-01 16:51:45 -07:00
Huon Wilson
1eb5efc5e2 libcore: add N(0,1) and Exp(1) distributions to core::rand.
Sample from the normal and exponential distributions using the Ziggurat
algorithm.
2013-05-01 16:51:45 -07:00
Jesse Luehrs
ed81e3353e glob_t should be public on all platforms 2013-05-01 16:49:58 -07:00
Jesse Luehrs
685baed34e add a higher level glob() function to os
this could probably use expansion - it just uses all of the default
options, which is usually what we want, but not always. maybe add a
separate function that takes more options?
2013-05-01 16:49:58 -07:00
Jesse Luehrs
058346219a libc bindings for glob.h
only tested on linux/x86_64, but i got the values for other platforms
from their system header files.

no bindings for win32, because win32 doesn't include glob.h.

also, glob() takes a callback for error handling, but i'm just making
this a *c_void for now, since i don't know how to represent c calling
back into rust (if that's even currently possible).
2013-05-01 16:49:58 -07:00