bors
37733c7eaf
auto merge of #7042 : kballard/rust/terminfo-searcher-paths, r=thestinger
...
r? @cmr
2013-06-10 16:31:31 -07:00
Kevin Ballard
8f1edd5307
terminfo: Support more terminfo directory structures
...
OS X's terminfo uses the hex representation of the first character of
the terminal name as the directory name.
Ubuntu seems to use /lib/terminfo instead of /usr/share/terminfo, at
least on the one machine I have access to.
2013-06-10 15:52:10 -07:00
bors
1310212c27
auto merge of #7032 : huonw/rust/each-fn-kill, r=thestinger
...
Continuation of #7015 , and #6995 .
Rewrites the character-based `each_split` functions in `str` to use an iterator, removes a few redundant methods, and replaces all uses of `len`, `is_empty` and `slice` functions with the methods (and deletes the the functions).
Update: Ok, this has turned into a major makeover for `str`, turning a lot of functions into methods, and removing redundant ones. Each commit is essentially a single such change.
(Unscientific benchmarks suggest that the external `split_iter` is approximately 10% faster than the internal one. I'm not quite sure why this would be true.)
(@thestinger is probably interested in this.)
2013-06-10 12:10:39 -07:00
Huon Wilson
e8782eeb63
fix tests, remove some warnings
2013-06-11 02:34:14 +10:00
Huon Wilson
2fa83c0503
std: replace str::is_{alphanumeric,whitespace} with the methods.
2013-06-11 01:07:52 +10:00
Huon Wilson
838191c40b
std: replace str::{starts,ends}_with with the method.
2013-06-11 01:03:24 +10:00
Huon Wilson
248b6e38b5
std: replace str::substr with the method.
2013-06-11 00:52:47 +10:00
Huon Wilson
ebefe425b9
std: remove str::to_chars
2013-06-11 00:49:19 +10:00
Huon Wilson
8c59d920a1
std: basic documentation for the new str methods
2013-06-11 00:08:57 +10:00
Huon Wilson
ccd0ac59e9
std: remove str::{connect,concat}*.
2013-06-10 23:57:03 +10:00
Huon Wilson
5a711ea7c3
clean-up unused import warnings
2013-06-10 23:15:01 +10:00
Huon Wilson
ead4468249
std: fix tests
2013-06-10 23:02:55 +10:00
Huon Wilson
ec5a028ada
std: convert str::char_at* to methods.
2013-06-10 23:02:55 +10:00
Huon Wilson
f632f46614
std: convert str::trim* to methods.
2013-06-10 23:02:55 +10:00
Huon Wilson
1553874149
std: convert str::reserve* to methods, and methodise str::push_*.
2013-06-10 23:02:55 +10:00
Huon Wilson
a64e886e3c
std: remove str::contains in favour of the method
2013-06-10 23:02:55 +10:00
Huon Wilson
017450a611
std: replace str::find_str* with a method
2013-06-10 23:02:54 +10:00
Huon Wilson
7281fb948a
std: replace str::{any,all}_between with the iterator equivalent.
2013-06-10 23:02:54 +10:00
Huon Wilson
0cfc08d81e
std: convert character-based str::find_* to methods. Add .slice_{to,from} methods.
2013-06-10 23:02:54 +10:00
Huon Wilson
76fc9be5a1
std: convert each_split_str to an iterator
2013-06-10 23:02:54 +10:00
Huon Wilson
ee41ad4168
std: fix compile & test
2013-06-10 23:02:54 +10:00
Huon Wilson
c32fb53cf9
std: remove str::{len, slice, is_empty} in favour of methods.
2013-06-10 23:02:54 +10:00
Huon Wilson
b29cd22bce
std: replace str::all/any fns and methods with iterators
2013-06-10 23:02:54 +10:00
Huon Wilson
1e8982bdb2
std: replace str::each_split* with an iterator
2013-06-10 23:02:54 +10:00
bors
2ff6b298c5
auto merge of #7041 : Aatch/rust/incoming, r=brson
...
So this gets jemalloc cross-compiling, on linux at least. Hopefully this gets us one step closer to a green incoming again.
2013-06-10 00:19:26 -07:00
James Miller
cf536e013a
Pass the correct build flags to jemalloc
...
Apparently the standard --build and --host flags don't actually
_do_ anything. This re-uses the libuv flags, since they are the
same for getting jemalloc to cross-compile
2013-06-10 18:26:24 +12:00
James Miller
e9c309c0e5
STATIC_PAGE_SHIFT for cross-compiling jemalloc
...
Sets `STATIC_PAGE_SHIFT` for cross-compiling jemalloc to 12. A
shift of 12 represents a page size of 4k for practically all
platforms.
2013-06-10 18:26:24 +12:00
bors
8f4f0bebe7
auto merge of #7038 : alexcrichton/rust/issue-6935, r=catamorphism
...
Tracks the `type_target` and `value_target` source imports separately to correctly warn about unused imports.
2013-06-09 21:49:23 -07:00
Alex Crichton
b6cccb3d81
Track the source of the type_target and value_target separately for ImportResolutions
2013-06-09 21:42:57 -07:00
bors
6e5e97fc78
auto merge of #7028 : thestinger/rust/cmp, r=brson
2013-06-09 20:13:23 -07:00
Daniel Micay
86833ea286
cmp: remove duplicate free functions
2013-06-09 20:47:40 -04:00
bors
9bcf9119d8
auto merge of #7029 : luqmana/rust/issue-4228, r=catamorphism
...
Fixes #4228
2013-06-09 14:46:24 -07:00
bors
94f72dd736
auto merge of #6904 : catamorphism/rust/rustpkg_version_vcs, r=catamorphism
...
r? @brson
2013-06-09 13:16:27 -07:00
Tim Chevalier
d92b4358d2
rustpkg: Accept package IDs like github.com/foo/bar#0.3
...
If the package ID is of the form s#v, where v is a valid version
string, fetch tag v of that package.
2013-06-09 13:05:52 -07:00
Luqman Aden
0bf6d9e9ef
Add test for #4228 .
2013-06-09 08:00:52 -04:00
Luqman Aden
618558a70f
librustc: Allow adding static fn's in multiple impl's.
2013-06-09 08:00:40 -04:00
bors
88c318d28c
auto merge of #7023 : thestinger/rust/vec, r=brson
2013-06-08 22:34:10 -07:00
Daniel Micay
de367157b5
remove deprecated vec::{is_empty, len} functions
2013-06-08 23:19:30 -04:00
bors
1f0c05ff74
auto merge of #7018 : bill-myers/rust/fix_7017, r=thestinger
...
Minimally fixes #7017 , we were overwriting the result and thus ignoring attributes before the last.
csearch::get_item_attrs and decoder::get_item_attrs should probably also be changed to each_item_attrs using the for protocol, but that's just a minor performance/style issue.
2013-06-08 19:16:11 -07:00
Bill Myers
54ec7ab057
add test for RcMut being Const and Owned, tests #7017 being fixed
2013-06-09 03:43:58 +02:00
Bill Myers
90ec4228be
fix decoding of multiple attributes ( fixes #7017 )
...
We were just looking at the last because we were overwriting ret.
2013-06-09 02:36:31 +02:00
bors
470bf0dfb3
auto merge of #7016 : thestinger/rust/ptr, r=luqmana
2013-06-08 14:31:10 -07:00
bors
878a9b92eb
auto merge of #7004 : dotdash/rust/allocs, r=thestinger
...
This removes some unnecessary allocations in the lexer, the typechecker and the metadata decoder. Reduces the time spent in the parsing and typechecking passes by about 10% for me.
2013-06-08 13:37:10 -07:00
bors
4aa77198cb
auto merge of #6992 : Blei/rust/fix-autoderef-ice, r=catamorphism
...
Related to #5062 , but doesn't fix that one.
2013-06-08 12:40:15 -07:00
Daniel Micay
fe3ad0a204
rm some uses of to_mut_unsafe_ptr
2013-06-08 15:02:32 -04:00
Tim Chevalier
53b8352552
rustpkg: Extract version number from git, as per #5684
...
For now, the test I added just checks that PkgId::new parses the
version number out of a git repo's tags list, where relevant.
2013-06-08 11:59:03 -07:00
Tim Chevalier
a014088da1
std: Fix search-and-replace typos
2013-06-08 11:59:03 -07:00
bors
59bbbe4335
auto merge of #6970 : artagnon/rust/configure, r=catamorphism
...
When no arguments are given, echo prints a blank line. These two are
equivalent:
$ echo ""
$ echo
Replace the former by the latter.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-06-08 11:46:13 -07:00
bors
b8fa9d3be1
auto merge of #7015 : huonw/rust/each-fn-kill, r=thestinger
...
Continuation of #6995/#6999.
2013-06-08 10:25:15 -07:00
Huon Wilson
98ba91f81b
remove unused import warnings
2013-06-09 02:22:23 +10:00