Graydon Hoare
bc2b78ca2c
rt: Fix child-iteration bug in crate map.
2013-07-22 16:56:10 -07:00
blake2-ppc
6e24b750e2
dlist: Rename rotate methods to .rotate_forward() and .rotate_backward()
2013-07-23 01:31:30 +02:00
bors
73921f91a3
auto merge of #7883 : brson/rust/rm-std-net, r=graydon
...
This removes all the code from libextra that depends on libuv. After that it removes three runtime features that existed to support the global uv loop: weak tasks, runtime-global variables, and at_exit handlers.
The networking code doesn't have many users besides servo, so shouldn't have much fallout. The timer code though is useful and will probably break out-of-tree code until the new scheduler lands, but I expect that to be soon.
It also incidentally moves `os::change_dir_locked` to `std::unstable`. This is a function used by test cases to avoid cwd races and in my opinion shouldn't be public (#7870 ).
Closes #7251 and #7870
2013-07-22 15:40:36 -07:00
Jeff Olson
3169bb70d8
std: fix for blocked task resume
2013-07-22 15:28:32 -07:00
crnobog
46394758aa
Change libaux directory to fix aux crate tests on Windows
2013-07-22 23:15:20 +01:00
Brian Anderson
407bffb33e
std: Remove at_exit API. Unused
2013-07-22 14:17:09 -07:00
Brian Anderson
23b7ee2bda
std: Remove unstable::global. Unused
2013-07-22 14:16:52 -07:00
Brian Anderson
6174f9a4d9
std: Move change_dir_locked to unstable. #7870
2013-07-22 14:16:52 -07:00
Brian Anderson
4beda4e582
std::rt: Stop using unstable::global in change_dir_locked
2013-07-22 14:16:52 -07:00
Brian Anderson
f8c4d99df6
std: Remove weak_task API. Unused
2013-07-22 14:16:52 -07:00
Brian Anderson
a637db2aa1
extra: Add url module
...
Used to be under extra::net, which no longer exists
2013-07-22 14:16:33 -07:00
Brian Anderson
219c1c71da
extra: Remove uv, net, timer code
...
This will all be reimplemented in the new runtime.
2013-07-22 14:16:33 -07:00
bors
9ed82fbb43
auto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonw
2013-07-22 13:49:34 -07:00
Jeff Olson
73ab6c60f3
std: make check appeasement
2013-07-22 13:19:05 -07:00
Jeff Olson
155470fc9c
std: minor timer cleanup based on feedback
2013-07-22 13:19:04 -07:00
Jeff Olson
5da29e3278
std: add rt::io::Timer
2013-07-22 13:19:04 -07:00
Jeff Olson
921d99108c
std: add RtioTimer and UvTimer impl atop rt::uv
2013-07-22 13:19:04 -07:00
bors
2f7d86f9a8
auto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brson
2013-07-22 12:01:41 -07:00
bors
48f115e168
auto merge of #7940 : cmr/rust/comments, r=pnkfelix
2013-07-22 10:07:34 -07:00
blake2-ppc
52b4a2eb6f
dlist: Fix .peek_next() w.r.t double ended iterators
...
.peek_next() needs to check the element counter just like the .next()
and .next_back() iterators do.
Also clarify .insert_next() doc w.r.t double ended iteration.
2013-07-22 17:51:11 +02:00
bors
52b7fc14fe
auto merge of #7903 : michaelwoerister/rust/end_of_spanned, r=jdm
...
Continuation of https://github.com/mozilla/rust/pull/7826 .
AST spanned<T> refactoring, AST type renamings:
`crate => Crate`
`local => Local`
`blk => Block`
`crate_num => CrateNum`
`crate_cfg => CrateConfig`
`field => Field`
Also, Crate, Field and Local are not wrapped in spanned<T> anymore.
2013-07-22 08:19:32 -07:00
Michael Woerister
5aee3e01a0
De-spanned<T> and renamed ast::field (now ast::Field)
2013-07-22 15:35:29 +02:00
Michael Woerister
4bd1424622
Ast spanned<T> refactoring, renaming: crate, local, blk, crate_num, crate_cfg.
...
`crate => Crate`
`local => Local`
`blk => Block`
`crate_num => CrateNum`
`crate_cfg => CrateConfig`
Also, Crate and Local are not wrapped in spanned<T> anymore.
2013-07-22 15:35:28 +02:00
bors
7a3eaf8f27
auto merge of #7941 : dotdash/rust/codegen, r=huonw
...
These changes remove unnecessary basic blocks and the associated branches from
the LLVM IR that we emit. Together, they reduce the time for unoptimized builds
in stage2 by about 10% on my box.
2013-07-22 06:28:35 -07:00
bors
7b2218d248
auto merge of #7926 : brson/rust/issue-4116, r=graydon
...
When loading a module the parser will look for either foo.rs or foo/mod.rs and generate
an error when both are found.
2013-07-22 04:37:36 -07:00
Felix S. Klock II
f98f3b0401
Note incompatibility with global-whitespace-mode.
...
See #3994 .
2013-07-22 12:27:46 +02:00
bors
40a48e62c1
auto merge of #7957 : alexcrichton/rust/ignore-warnings, r=thestinger
...
The new snapshot now enables this.
2013-07-22 02:49:36 -07:00
Alex Crichton
634eddb28e
Allow all warnings in stage0 to account for bugs
2013-07-22 00:30:32 -07:00
bors
74f4badcab
auto merge of #7955 : thestinger/rust/snapshot, r=huonw
2013-07-21 22:34:36 -07:00
Daniel Micay
f51e2ad435
temporarily disable 3 rustpkg tests
...
Re-enabling these when the ephemeral failures are fixed is filed as
issue #7956 .
2013-07-22 01:09:56 -04:00
Daniel Micay
ed67cdb73c
new snapshot
2013-07-22 01:09:48 -04:00
bors
3d6c0bc056
auto merge of #7938 : crabtw/rust/foreign-vis, r=huonw
2013-07-21 20:46:33 -07:00
zslayton
49014c8268
Exposed previously hidden 'use' statements in the tutorial's sample code.
2013-07-21 23:40:52 -04:00
Steven Stewart-Gallus
9a99f5bbe2
Cleanup libsyntax a bit
2013-07-21 20:13:25 -07:00
Steven Stewart-Gallus
a8870dfbb5
Minor cleanup of hashmap
2013-07-21 20:10:55 -07:00
Daniel Micay
fc05819181
Merge pull request #7936 from thestinger/cleanup
...
rm obsolete no-op lints
2013-07-21 20:04:15 -07:00
Brian Anderson
a74d92e8ab
syntax: Bless mod.rs. #4116
...
When loading a module the parser will look for either foo.rs or foo/mod.rs and generate
an error when both are found.
2013-07-21 19:32:24 -07:00
Steven Fackler
8eb6d2d829
Eliminated SmallIntSet
...
SmallIntSet is equivalent to BitvSet but with 8 times the memory
overhead. There's no reason for it to exist.
2013-07-21 19:37:34 -04:00
bors
fe3f75ff8e
auto merge of #7932 : blake2-ppc/rust/str-clear, r=huonw
...
~str and @str need separate implementations for use in generic
functions, where it will not automatically use the impl on &str.
fixes issue #7900
2013-07-21 15:28:38 -07:00
blake2-ppc
cf437a2730
dlist: Remove extraneous unwrap in .pop_back_node()
2013-07-21 22:37:14 +02:00
bors
e336cbf8f9
auto merge of #7923 : alexcrichton/rust/add-tests, r=graydon
...
Closes #5275 , #4547
2013-07-21 13:07:45 -07:00
blake2-ppc
21adfd5645
dlist: Use Ord for .insert_ordered()
...
We don't need TotalOrd for ordered insertion, just the normal sort order
Ord.
2013-07-21 21:05:48 +02:00
blake2-ppc
b1a071e314
dlist: Remove bench tests for vec
...
These tests for ~[] performance don't really belong here, they were for
comparison.
2013-07-21 21:05:48 +02:00
blake2-ppc
bfa9b43b71
dlist: Add bench test for rotate_to_{front, back}
2013-07-21 21:05:48 +02:00
bors
73e9a121d2
auto merge of #7921 : bytewiseand/rust/smallint-iter, r=huonw
...
Made the `iter` and `mut_iter` methods on SmallIntMap and SmallIntSet return double-ended-iterators. These iterators now implement `size_hint`.
Also the iterator tests only tested dense maps/sets, which aren't very useful. So they were changed to iterate over sparse maps/sets.
Fixes #7721
2013-07-21 11:22:38 -07:00
Gareth Smith
a6263694ff
Remove what appears to be redundant indirection from
...
os::list_dir_path.
2013-07-21 18:33:29 +01:00
blake2-ppc
b71c3d250f
dlist: Add .rotate_to_front(), .rotate_to_back()
...
Add methods to move back element to front or front element to back,
without reallocating nodes.
2013-07-21 19:31:40 +02:00
blake2-ppc
78d0cf1409
dlist: Factor out pop and push operations by list node
...
Factor out internal methods for pop/push ~Node<T>, This allows moving
nodes instead of destructuring and allocating new.
Make use of this in .merge() so that it requires no allocations when
merging two DList.
2013-07-21 19:31:40 +02:00
blake2-ppc
5336bdcab1
dlist: Simplify match clauses to use Option methods
...
Make the core Deque implementation a bit simpler by using Option methods
when we simply map on a Some value, and deduplicate some common lines.
2013-07-21 19:31:40 +02:00
blake2-ppc
60cb9c003c
serialize: implement Encodable for DList
...
This impl was missing for unknown reason.
2013-07-21 19:31:40 +02:00