]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoauto merge of #8006 : emillon/rust/issue-6060, r=pcwalton
bors [Wed, 24 Jul 2013 23:49:36 +0000 (16:49 -0700)]
auto merge of #8006 : emillon/rust/issue-6060, r=pcwalton

Hello,

I made a tiny change to `tidy.py` so that it uses a regexp to find `// NOTE` comments. I could not find an easy way to write an automated test for this but if this is needed and possible I'd be happy to write one.
Please note that it also removes extra empty lines that appear after each of these warnings (I believe that there were not wanted).

On the performance side, `make tidy` is now a bit slower (running it 10 times in a row takes 71s on my machine, 65s before) but I don't think that it is performance sensitive.

Thanks!

11 years agoauto merge of #7996 : erickt/rust/cleanup-strs, r=erickt
bors [Wed, 24 Jul 2013 20:25:36 +0000 (13:25 -0700)]
auto merge of #7996 : erickt/rust/cleanup-strs, r=erickt

This is a cleanup pull request that does:

* removes `os::as_c_charp`
* moves `str::as_buf` and `str::as_c_str` into `StrSlice`
* converts some functions from `StrSlice::as_buf` to `StrSlice::as_c_str`
* renames `StrSlice::as_buf` to `StrSlice::as_imm_buf` (and adds `StrSlice::as_mut_buf` to match `vec.rs`.
* renames `UniqueStr::as_bytes_with_null_consume` to `UniqueStr::to_bytes`
* and other misc cleanups and minor optimizations

11 years agostd: str.as_bytes_with_null_consume() => str.to_bytes_with_null()
Erick Tryzelaar [Wed, 24 Jul 2013 19:33:49 +0000 (12:33 -0700)]
std: str.as_bytes_with_null_consume() => str.to_bytes_with_null()

11 years agoauto merge of #7997 : omasanori/rust/cleanup, r=cmr
bors [Wed, 24 Jul 2013 18:16:33 +0000 (11:16 -0700)]
auto merge of #7997 : omasanori/rust/cleanup, r=cmr

Just an minor cleanup.

11 years agoauto merge of #7982 : thestinger/rust/iterator, r=thestinger
bors [Wed, 24 Jul 2013 15:52:36 +0000 (08:52 -0700)]
auto merge of #7982 : thestinger/rust/iterator, r=thestinger

f0f4dcc r=huonw
25e9c4c r=graydon
a87c2d1 r=brson
16f369d r=cmr
9f05cc8 r=bstrie
e858055 r=huonw
5d80938 r=thestinger
05d03e7 r=cmr
8f86fa3 r=thestinger

11 years agorc: Use ~T for allocation
blake2-ppc [Wed, 24 Jul 2013 12:11:49 +0000 (14:11 +0200)]
rc: Use ~T for allocation

Simplify Rc<T>/RcMut<T> by using ~T when allocating a reference counted
box.

11 years agofix compilation on macos/windows
Daniel Micay [Wed, 24 Jul 2013 05:48:11 +0000 (01:48 -0400)]
fix compilation on macos/windows

11 years agoToStr for HashMap does not need value to implement Eq or Hash
Stepan Koltsov [Tue, 23 Jul 2013 12:40:25 +0000 (16:40 +0400)]
ToStr for HashMap does not need value to implement Eq or Hash

11 years agorustc: Remove some dead code from method resolution
Brian Anderson [Tue, 23 Jul 2013 00:06:16 +0000 (17:06 -0700)]
rustc: Remove some dead code from method resolution

11 years agoFix a crash when transmuting non-immediate to immediate types
Björn Steinbrink [Tue, 23 Jul 2013 07:37:00 +0000 (09:37 +0200)]
Fix a crash when transmuting non-immediate to immediate types

The code to build the transmute intrinsic currently makes the invalid
assumption that if the in-type is non-immediate, the out-type is
non-immediate as well. But this is wrong, for example when transmuting
[int, ..1] to int. So we need to handle this fourth case as well.

Fixes #7988

11 years agofix fmt! usage
Daniel Micay [Wed, 24 Jul 2013 03:41:33 +0000 (23:41 -0400)]
fix fmt! usage

11 years agoDisallow non-comma-delimited arguments to fmt! and bytes!
Birunthan Mohanathas [Mon, 22 Jul 2013 18:22:22 +0000 (21:22 +0300)]
Disallow non-comma-delimited arguments to fmt! and bytes!
Closes #4982.

11 years agostd:rt: args module is not used by win/mac. #7951
Brian Anderson [Mon, 22 Jul 2013 18:20:40 +0000 (11:20 -0700)]
std:rt: args module is not used by win/mac. #7951

11 years agoChange 'print(fmt!(...))' to printf!/printfln! in src/test/
Birunthan Mohanathas [Mon, 22 Jul 2013 16:04:51 +0000 (19:04 +0300)]
Change 'print(fmt!(...))' to printf!/printfln! in src/test/

11 years agoChange 'print(fmt!(...))' to printf!/printfln! in src/lib*
Birunthan Mohanathas [Mon, 22 Jul 2013 16:03:39 +0000 (19:03 +0300)]
Change 'print(fmt!(...))' to printf!/printfln! in src/lib*

11 years agodocument random-access iterators
Daniel Micay [Tue, 23 Jul 2013 21:14:32 +0000 (17:14 -0400)]
document random-access iterators

11 years agoexpand on double-ended iterators in the tutorial
Daniel Micay [Tue, 23 Jul 2013 18:37:06 +0000 (14:37 -0400)]
expand on double-ended iterators in the tutorial

11 years agoadd a RandomAccessIterator trait
Daniel Micay [Tue, 23 Jul 2013 00:11:24 +0000 (20:11 -0400)]
add a RandomAccessIterator trait

11 years agoauto merge of #7993 : Xazax-hun/rust/master, r=bblum
bors [Wed, 24 Jul 2013 13:37:36 +0000 (06:37 -0700)]
auto merge of #7993 : Xazax-hun/rust/master, r=bblum

Added missing memory orderings for atomic types. https://github.com/mozilla/rust/issues/7422

11 years agoauto merge of #7992 : huonw/rust/un-xfail, r=z0w0
bors [Wed, 24 Jul 2013 11:22:36 +0000 (04:22 -0700)]
auto merge of #7992 : huonw/rust/un-xfail, r=z0w0

...(they still don't work).

11 years agoauto merge of #7987 : alexcrichton/rust/tests-for-closed-issues, r=huonw
bors [Wed, 24 Jul 2013 08:34:38 +0000 (01:34 -0700)]
auto merge of #7987 : alexcrichton/rust/tests-for-closed-issues, r=huonw

Closes #5844

11 years agoauto merge of #7980 : graydon/rust/misc-benchmarks, r=catamorphism
bors [Wed, 24 Jul 2013 05:46:39 +0000 (22:46 -0700)]
auto merge of #7980 : graydon/rust/misc-benchmarks, r=catamorphism

Some machinery for enabling #[bench] benchmarks in std and some examples showing how to write them.

11 years agoauto merge of #7958 : kemurphy/rust/link-section, r=alexcrichton
bors [Wed, 24 Jul 2013 03:04:53 +0000 (20:04 -0700)]
auto merge of #7958 : kemurphy/rust/link-section, r=alexcrichton

This allows for control over the section placement of static, static
mut, and fn items.  One caveat is that if a static and a static mut are
placed in the same section, the static is declared first, and the static
mut is assigned to, the generated program crashes.  For example:

#[link_section=".boot"]
static foo : uint = 0xdeadbeef;

#[link_section=".boot"]
static mut bar : uint = 0xcafebabe;

Declaring bar first would mark .bootdata as writable, preventing the
crash when bar is written to.

11 years agoauto merge of #7885 : graydon/rust/workcache-fixes-1, r=pcwalton
bors [Wed, 24 Jul 2013 00:49:54 +0000 (17:49 -0700)]
auto merge of #7885 : graydon/rust/workcache-fixes-1, r=pcwalton

This just redoes various parts of workcache to support context-cloning (eventually quite crudely, via ARCs), the absence of which was blocking rustpkg from being able to use it. Better versions of this are possible (notably removing the ARCs on everything except the database) but it ought to work well enough for now.

11 years agostd: make str::append move self
Erick Tryzelaar [Tue, 23 Jul 2013 16:55:09 +0000 (09:55 -0700)]
std: make str::append move self

This eliminates a copy and fixes a FIXME.

11 years agorustc: remove unused variables
Erick Tryzelaar [Sat, 20 Jul 2013 02:50:10 +0000 (19:50 -0700)]
rustc: remove unused variables

11 years agoclean up warnings
Erick Tryzelaar [Sun, 21 Jul 2013 15:57:16 +0000 (08:57 -0700)]
clean up warnings

11 years agostd: inline str::with_capacity and vec::with_capacity
Erick Tryzelaar [Tue, 23 Jul 2013 16:54:28 +0000 (09:54 -0700)]
std: inline str::with_capacity and vec::with_capacity

11 years agostd: simplify str::as_imm_buf and vec::as_{imm,mut}_buf
Erick Tryzelaar [Tue, 23 Jul 2013 19:31:00 +0000 (12:31 -0700)]
std: simplify str::as_imm_buf and vec::as_{imm,mut}_buf

11 years agostr: move as_mut_buf into OwnedStr, and make it `self`
Erick Tryzelaar [Tue, 23 Jul 2013 19:30:34 +0000 (12:30 -0700)]
str: move as_mut_buf into OwnedStr, and make it `self`

11 years agostd: remove a malloc from os::fill_charp_buf
Erick Tryzelaar [Tue, 23 Jul 2013 13:51:27 +0000 (06:51 -0700)]
std: remove a malloc from os::fill_charp_buf

11 years agostd: remove str::to_owned and str::raw::slice_bytes_owned
Erick Tryzelaar [Tue, 23 Jul 2013 13:49:17 +0000 (06:49 -0700)]
std: remove str::to_owned and str::raw::slice_bytes_owned

11 years agostd: rename str.as_buf to as_imm_buf, add str.as_mut_buf
Erick Tryzelaar [Tue, 23 Jul 2013 04:48:22 +0000 (21:48 -0700)]
std: rename str.as_buf to as_imm_buf, add str.as_mut_buf

11 years agostd and extra: use as_c_str instead of as_buf in a couple places
Erick Tryzelaar [Tue, 23 Jul 2013 04:45:33 +0000 (21:45 -0700)]
std and extra: use as_c_str instead of as_buf in a couple places

These uses are assuming the strings are null terminated, so it
should be using `as_c_str` instead of `as_buf`

11 years agostd: add test for str::as_c_str
Erick Tryzelaar [Tue, 23 Jul 2013 04:42:51 +0000 (21:42 -0700)]
std: add test for str::as_c_str

11 years agostd: move StrUtil::as_c_str into StrSlice
Erick Tryzelaar [Tue, 23 Jul 2013 04:41:46 +0000 (21:41 -0700)]
std: move StrUtil::as_c_str into StrSlice

11 years agostd: move str::as_buf into StrSlice
Erick Tryzelaar [Thu, 11 Jul 2013 00:33:11 +0000 (17:33 -0700)]
std: move str::as_buf into StrSlice

11 years agostd: remove os::as_c_charp
Erick Tryzelaar [Sun, 30 Jun 2013 15:25:16 +0000 (08:25 -0700)]
std: remove os::as_c_charp

11 years agostd: rename str.as_bytes_with_null_consume to str.to_bytes_with_null
Erick Tryzelaar [Tue, 23 Jul 2013 23:56:17 +0000 (16:56 -0700)]
std: rename str.as_bytes_with_null_consume to str.to_bytes_with_null

11 years agostd: wrap "long" utf8 lines.
Graydon Hoare [Tue, 23 Jul 2013 23:02:14 +0000 (16:02 -0700)]
std: wrap "long" utf8 lines.

11 years agoextra: rebase fallout.
Graydon Hoare [Tue, 23 Jul 2013 22:59:24 +0000 (15:59 -0700)]
extra: rebase fallout.

11 years agoauto merge of #7964 : pnkfelix/rust/fsk-issue3994-readme-note, r=huonw
bors [Tue, 23 Jul 2013 22:40:53 +0000 (15:40 -0700)]
auto merge of #7964 : pnkfelix/rust/fsk-issue3994-readme-note, r=huonw

See #3994.

11 years agoextra: give up trying to make more fields of context cloneable, just use ARCs.
Graydon Hoare [Thu, 18 Jul 2013 20:05:18 +0000 (13:05 -0700)]
extra: give up trying to make more fields of context cloneable, just use ARCs.

11 years agoextra: switch json from hashmaps to treemaps
Graydon Hoare [Thu, 18 Jul 2013 19:37:40 +0000 (12:37 -0700)]
extra: switch json from hashmaps to treemaps

11 years agoextra: add consume iter to treemap.
Graydon Hoare [Thu, 18 Jul 2013 19:37:18 +0000 (12:37 -0700)]
extra: add consume iter to treemap.

11 years agoextra: clean up workcache to use & in place of @ most places.
Graydon Hoare [Thu, 18 Jul 2013 04:12:36 +0000 (21:12 -0700)]
extra: clean up workcache to use & in place of @ most places.

11 years agoextra: remove a @ in workcache config.
Graydon Hoare [Wed, 17 Jul 2013 23:41:35 +0000 (16:41 -0700)]
extra: remove a @ in workcache config.

11 years agoextra: change workcache::Work::unwrap to move out of self.
Graydon Hoare [Wed, 17 Jul 2013 23:33:38 +0000 (16:33 -0700)]
extra: change workcache::Work::unwrap to move out of self.

11 years agoextra: access workcache db via RWARC.
Graydon Hoare [Wed, 17 Jul 2013 23:18:43 +0000 (16:18 -0700)]
extra: access workcache db via RWARC.

11 years agoextra: use deriving more in workcache, switch to treemaps.
Graydon Hoare [Wed, 17 Jul 2013 23:10:11 +0000 (16:10 -0700)]
extra: use deriving more in workcache, switch to treemaps.

11 years agoAdd simple link_section test to exercise it
Kevin Murphy [Tue, 23 Jul 2013 21:23:22 +0000 (17:23 -0400)]
Add simple link_section test to exercise it

11 years agoauto merge of #7954 : zslayton/rust/master, r=huonw
bors [Tue, 23 Jul 2013 20:19:56 +0000 (13:19 -0700)]
auto merge of #7954 : zslayton/rust/master, r=huonw

fixes #7689

11 years agotidy: allow arbitrary spaces between // and NOTE
Etienne Millon [Tue, 23 Jul 2013 19:07:51 +0000 (21:07 +0200)]
tidy: allow arbitrary spaces between // and NOTE

`make tidy` now detects `//NOTE`, `//  NOTE`, etc.
This also removes the extra empty line emitted after each warning.

Fixes #6060

11 years agoauto merge of #7848 : michaelwoerister/rust/trans_cleanup_1, r=jdm
bors [Tue, 23 Jul 2013 18:10:47 +0000 (11:10 -0700)]
auto merge of #7848 : michaelwoerister/rust/trans_cleanup_1, r=jdm

The following types are renamed:
```rust
block_ => Block
block => @mut Block

fn_ctx_ => FunctionContext
fn_ctx => @mut FunctionContext

scope_info => ScopeInfo
```
I also tried to convert instances of `@mut` to `&mut` or `&` but a lot of them are blocked by issue #6268, so I left it for some time later.

11 years agorustc: remove some dead functions
Erick Tryzelaar [Sun, 30 Jun 2013 01:47:47 +0000 (18:47 -0700)]
rustc: remove some dead functions

11 years agoRemove unused variables in `compile_submatch`.
OGINO Masanori [Tue, 23 Jul 2013 15:03:54 +0000 (00:03 +0900)]
Remove unused variables in `compile_submatch`.

Just an minor cleanup.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
11 years agoAdapted `trans::common::{block, fn_ctxt, scope_info}` to new naming convention.
Michael Woerister [Wed, 17 Jul 2013 10:12:08 +0000 (12:12 +0200)]
Adapted `trans::common::{block, fn_ctxt, scope_info}` to new naming convention.

11 years agoauto merge of #7944 : blake2-ppc/rust/dlist-move-nodes, r=bblum
bors [Tue, 23 Jul 2013 11:46:41 +0000 (04:46 -0700)]
auto merge of #7944 : blake2-ppc/rust/dlist-move-nodes, r=bblum

Factor out internal methods to pop/push list nodes so that .merge() and .rotate_to_front(), .rotate_to_back() (new methods) can be implemented without allocating nodes.

With that, some cleanup changes to DList use of Option, and adding a missing Encodable implementation.

11 years agoAdded missing memory orderings for atomic types.
Gábor Horváth [Tue, 23 Jul 2013 10:34:40 +0000 (12:34 +0200)]
Added missing memory orderings for atomic types.

11 years agoauto merge of #7934 : sfackler/rust/smallintset, r=alexcrichton
bors [Tue, 23 Jul 2013 10:04:39 +0000 (03:04 -0700)]
auto merge of #7934 : sfackler/rust/smallintset, r=alexcrichton

SmallIntSet is equivalent to BitvSet but with 64 times the memory
overhead. There's no reason for it to exist.

SmallIntSet's overhead should really only be 8 times, but for some
reason, `sys::size_of::<Option<()>>() == 8`, not 1.

11 years agotest/run-fail: Un-xfail a test, make some other xfailed ones compile (they still...
Huon Wilson [Tue, 23 Jul 2013 08:55:15 +0000 (18:55 +1000)]
test/run-fail: Un-xfail a test, make some other xfailed ones compile (they still don't work).

11 years agoauto merge of #7875 : sstewartgallus/rust/fubar, r=alexcrichton
bors [Tue, 23 Jul 2013 06:13:41 +0000 (23:13 -0700)]
auto merge of #7875 : sstewartgallus/rust/fubar, r=alexcrichton

11 years agoAdd a test for #5844 (a closed issue now)
Alex Crichton [Tue, 23 Jul 2013 04:48:41 +0000 (21:48 -0700)]
Add a test for #5844 (a closed issue now)

11 years agoauto merge of #7873 : sstewartgallus/rust/cleanup_syntax, r=alexcrichton
bors [Tue, 23 Jul 2013 03:58:35 +0000 (20:58 -0700)]
auto merge of #7873 : sstewartgallus/rust/cleanup_syntax, r=alexcrichton

11 years agoAdd link_section attribute for static and fn items
Kevin Murphy [Tue, 23 Jul 2013 02:34:04 +0000 (22:34 -0400)]
Add link_section attribute for static and fn items

This allows for control over the section placement of static, static
mut, and fn items.  One caveat is that if a static and a static mut are
placed in the same section, the static is declared first, and the static
mut is assigned to, the generated program crashes.  For example:

#[link_section=".boot"]
static foo : uint = 0xdeadbeef;

#[link_section=".boot"]
static mut bar : uint = 0xcafebabe;

Declaring bar first would mark .bootdata as writable, preventing the
crash when bar is written to.

11 years agoauto merge of #7703 : sfackler/rust/bitv, r=alexcrichton
bors [Tue, 23 Jul 2013 02:13:39 +0000 (19:13 -0700)]
auto merge of #7703 : sfackler/rust/bitv, r=alexcrichton

Switched Bitv and BitvSet to external iterators. They still use some internal iterators internally (ha).

Derived clone for all Bitv types.

Removed indirection in BitvVariant. It previously held a unique pointer to the appropriate Bitv struct, even though those structs are the size of a pointer themselves. BitvVariant is the same size (16 bytes) as it was previously.

11 years agoauto merge of #7916 : olsonjeffery/rust/newrt_timer, r=brson
bors [Tue, 23 Jul 2013 00:28:35 +0000 (17:28 -0700)]
auto merge of #7916 : olsonjeffery/rust/newrt_timer, r=brson

My first bit of newsched IO work. Pretty simple and limited in scope.

the RtioTimer trait only has a `sleep(msecs: u64)` method, for now. Taking requests on what else ought to be here.

oh yeah: this resolves #6435

11 years agostd: various additional language benchmarks in util.
Graydon Hoare [Mon, 22 Jul 2013 23:50:36 +0000 (16:50 -0700)]
std: various additional language benchmarks in util.

11 years agostd: add benchmark for allocating-and-dropping a struct with a dtor.
Graydon Hoare [Mon, 22 Jul 2013 23:50:17 +0000 (16:50 -0700)]
std: add benchmark for allocating-and-dropping a struct with a dtor.

11 years agostd: add #[bench] benchmarks for num::strconv
Graydon Hoare [Mon, 22 Jul 2013 18:43:32 +0000 (11:43 -0700)]
std: add #[bench] benchmarks for num::strconv

11 years agostd: add #[bench] benchmarks for rand.
Graydon Hoare [Mon, 22 Jul 2013 18:43:12 +0000 (11:43 -0700)]
std: add #[bench] benchmarks for rand.

11 years agostd: add #[bench] benchmarks for global and local heaps.
Graydon Hoare [Mon, 22 Jul 2013 18:42:47 +0000 (11:42 -0700)]
std: add #[bench] benchmarks for global and local heaps.

11 years agostd: add preliminary str benchmark.
Graydon Hoare [Mon, 22 Jul 2013 17:52:38 +0000 (10:52 -0700)]
std: add preliminary str benchmark.

11 years agostd: add #[cfg(test)] reference to extra so we can benchmark libstd.
Graydon Hoare [Mon, 22 Jul 2013 16:49:04 +0000 (09:49 -0700)]
std: add #[cfg(test)] reference to extra so we can benchmark libstd.

11 years agort: Fix child-iteration bug in crate map.
Graydon Hoare [Mon, 22 Jul 2013 16:48:22 +0000 (09:48 -0700)]
rt: Fix child-iteration bug in crate map.

11 years agodlist: Rename rotate methods to .rotate_forward() and .rotate_backward()
blake2-ppc [Mon, 22 Jul 2013 23:31:30 +0000 (01:31 +0200)]
dlist: Rename rotate methods to .rotate_forward() and .rotate_backward()

11 years agoauto merge of #7883 : brson/rust/rm-std-net, r=graydon
bors [Mon, 22 Jul 2013 22:40:36 +0000 (15:40 -0700)]
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

11 years agostd: fix for blocked task resume
Jeff Olson [Mon, 22 Jul 2013 22:28:32 +0000 (15:28 -0700)]
std: fix for blocked task resume

11 years agostd: Remove at_exit API. Unused
Brian Anderson [Thu, 18 Jul 2013 02:51:40 +0000 (19:51 -0700)]
std: Remove at_exit API. Unused

11 years agostd: Remove unstable::global. Unused
Brian Anderson [Thu, 18 Jul 2013 02:14:58 +0000 (19:14 -0700)]
std: Remove unstable::global. Unused

11 years agostd: Move change_dir_locked to unstable. #7870
Brian Anderson [Thu, 18 Jul 2013 01:59:29 +0000 (18:59 -0700)]
std: Move change_dir_locked to unstable. #7870

11 years agostd::rt: Stop using unstable::global in change_dir_locked
Brian Anderson [Thu, 18 Jul 2013 01:38:12 +0000 (18:38 -0700)]
std::rt: Stop using unstable::global in change_dir_locked

11 years agostd: Remove weak_task API. Unused
Brian Anderson [Thu, 18 Jul 2013 01:04:10 +0000 (18:04 -0700)]
std: Remove weak_task API. Unused

11 years agoextra: Add url module
Brian Anderson [Thu, 18 Jul 2013 00:47:20 +0000 (17:47 -0700)]
extra: Add url module

Used to be under extra::net, which no longer exists

11 years agoextra: Remove uv, net, timer code
Brian Anderson [Wed, 17 Jul 2013 22:14:34 +0000 (15:14 -0700)]
extra: Remove uv, net, timer code

This will all be reimplemented in the new runtime.

11 years agoauto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonw
bors [Mon, 22 Jul 2013 20:49:34 +0000 (13:49 -0700)]
auto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonw

11 years agostd: make check appeasement
Jeff Olson [Fri, 19 Jul 2013 23:24:07 +0000 (16:24 -0700)]
std: make check appeasement

11 years agostd: minor timer cleanup based on feedback
Jeff Olson [Fri, 19 Jul 2013 23:22:13 +0000 (16:22 -0700)]
std: minor timer cleanup based on feedback

11 years agostd: add rt::io::Timer
Jeff Olson [Fri, 19 Jul 2013 23:03:02 +0000 (16:03 -0700)]
std: add rt::io::Timer

11 years agostd: add RtioTimer and UvTimer impl atop rt::uv
Jeff Olson [Fri, 19 Jul 2013 23:02:38 +0000 (16:02 -0700)]
std: add RtioTimer and UvTimer impl atop rt::uv

11 years agoauto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brson
bors [Mon, 22 Jul 2013 19:01:41 +0000 (12:01 -0700)]
auto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brson

11 years agoauto merge of #7940 : cmr/rust/comments, r=pnkfelix
bors [Mon, 22 Jul 2013 17:07:34 +0000 (10:07 -0700)]
auto merge of #7940 : cmr/rust/comments, r=pnkfelix

11 years agodlist: Fix .peek_next() w.r.t double ended iterators
blake2-ppc [Mon, 22 Jul 2013 15:51:11 +0000 (17:51 +0200)]
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.

11 years agoauto merge of #7903 : michaelwoerister/rust/end_of_spanned, r=jdm
bors [Mon, 22 Jul 2013 15:19:32 +0000 (08:19 -0700)]
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.

11 years agoDe-spanned<T> and renamed ast::field (now ast::Field)
Michael Woerister [Fri, 19 Jul 2013 14:24:22 +0000 (16:24 +0200)]
De-spanned<T> and renamed ast::field (now ast::Field)

11 years agoAst spanned<T> refactoring, renaming: crate, local, blk, crate_num, crate_cfg.
Michael Woerister [Fri, 19 Jul 2013 05:38:55 +0000 (07:38 +0200)]
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.

11 years agoauto merge of #7941 : dotdash/rust/codegen, r=huonw
bors [Mon, 22 Jul 2013 13:28:35 +0000 (06:28 -0700)]
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.

11 years agoauto merge of #7926 : brson/rust/issue-4116, r=graydon
bors [Mon, 22 Jul 2013 11:37:36 +0000 (04:37 -0700)]
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.

11 years agoNote incompatibility with global-whitespace-mode.
Felix S. Klock II [Mon, 22 Jul 2013 10:27:46 +0000 (12:27 +0200)]
Note incompatibility with global-whitespace-mode.

See #3994.

11 years agoauto merge of #7957 : alexcrichton/rust/ignore-warnings, r=thestinger
bors [Mon, 22 Jul 2013 09:49:36 +0000 (02:49 -0700)]
auto merge of #7957 : alexcrichton/rust/ignore-warnings, r=thestinger

The new snapshot now enables this.