about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-07-23extra: add consume iter to treemap.Graydon Hoare-0/+63
2013-07-23extra: clean up workcache to use & in place of @ most places.Graydon Hoare-58/+71
2013-07-23extra: remove a @ in workcache config.Graydon Hoare-3/+3
2013-07-23extra: change workcache::Work::unwrap to move out of self.Graydon Hoare-26/+18
2013-07-23extra: access workcache db via RWARC.Graydon Hoare-13/+17
2013-07-23extra: use deriving more in workcache, switch to treemaps.Graydon Hoare-71/+22
2013-07-23Add simple link_section test to exercise itKevin Murphy-0/+34
2013-07-23tidy: allow arbitrary spaces between // and NOTEEtienne Millon-3/+3
`make tidy` now detects `//NOTE`, `// NOTE`, etc. This also removes the extra empty line emitted after each warning. Fixes #6060
2013-07-23Compare file:line prefix case-insensitively on win32crnobog-1/+26
Paths are case insensitive on windows and rustc and compiletest may disagree on casing. Fixes test compile-fail/circular_modules_main
2013-07-23rustc: remove some dead functionsErick Tryzelaar-17/+0
2013-07-24Remove unused variables in `compile_submatch`.OGINO Masanori-2/+0
Just an minor cleanup. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-07-23Adapted `trans::common::{block, fn_ctxt, scope_info}` to new naming convention.Michael Woerister-660/+657
2013-07-23auto merge of #7944 : blake2-ppc/rust/dlist-move-nodes, r=bblumbors-138/+199
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.
2013-07-23Added missing memory orderings for atomic types.Gábor Horváth-0/+12
2013-07-23auto merge of #7934 : sfackler/rust/smallintset, r=alexcrichtonbors-369/+0
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.
2013-07-23test/run-fail: Un-xfail a test, make some other xfailed ones compile (they ↵Huon Wilson-9/+10
still don't work).
2013-07-22auto merge of #7875 : sstewartgallus/rust/fubar, r=alexcrichtonbors-11/+5
2013-07-22Add a test for #5844 (a closed issue now)Alex Crichton-0/+34
2013-07-22auto merge of #7873 : sstewartgallus/rust/cleanup_syntax, r=alexcrichtonbors-100/+100
2013-07-22Add link_section attribute for static and fn itemsKevin Murphy-1/+10
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.
2013-07-22auto merge of #7703 : sfackler/rust/bitv, r=alexcrichtonbors-51/+149
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.
2013-07-22auto merge of #7916 : olsonjeffery/rust/newrt_timer, r=brsonbors-0/+137
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
2013-07-22std: various additional language benchmarks in util.Graydon Hoare-0/+65
2013-07-22std: add benchmark for allocating-and-dropping a struct with a dtor.Graydon Hoare-0/+25
2013-07-22std: add #[bench] benchmarks for num::strconvGraydon Hoare-0/+24
2013-07-22std: add #[bench] benchmarks for rand.Graydon Hoare-1/+35
2013-07-22std: add #[bench] benchmarks for global and local heaps.Graydon Hoare-0/+38
2013-07-22std: add preliminary str benchmark.Graydon Hoare-0/+45
2013-07-22std: add #[cfg(test)] reference to extra so we can benchmark libstd.Graydon Hoare-0/+3
2013-07-22rt: Fix child-iteration bug in crate map.Graydon Hoare-1/+1
2013-07-23dlist: Rename rotate methods to .rotate_forward() and .rotate_backward()blake2-ppc-15/+15
2013-07-22auto merge of #7883 : brson/rust/rm-std-net, r=graydonbors-5978/+83
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-22std: fix for blocked task resumeJeff Olson-2/+2
2013-07-22Change libaux directory to fix aux crate tests on Windowscrnobog-1/+1
2013-07-22std: Remove at_exit API. UnusedBrian Anderson-172/+0
2013-07-22std: Remove unstable::global. UnusedBrian Anderson-292/+1
2013-07-22std: Move change_dir_locked to unstable. #7870Brian Anderson-43/+57
2013-07-22std::rt: Stop using unstable::global in change_dir_lockedBrian Anderson-14/+40
2013-07-22std: Remove weak_task API. UnusedBrian Anderson-226/+0
2013-07-22extra: Add url moduleBrian Anderson-0/+1072
Used to be under extra::net, which no longer exists
2013-07-22extra: Remove uv, net, timer codeBrian Anderson-6327/+9
This will all be reimplemented in the new runtime.
2013-07-22auto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonwbors-3/+47
2013-07-22std: make check appeasementJeff Olson-6/+7
2013-07-22std: minor timer cleanup based on feedbackJeff Olson-5/+5
2013-07-22std: add rt::io::TimerJeff Olson-0/+67
2013-07-22std: add RtioTimer and UvTimer impl atop rt::uvJeff Olson-0/+69
2013-07-22auto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brsonbors-10/+10
2013-07-22auto merge of #7940 : cmr/rust/comments, r=pnkfelixbors-8/+12
2013-07-22dlist: Fix .peek_next() w.r.t double ended iteratorsblake2-ppc-1/+6
.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-22auto merge of #7903 : michaelwoerister/rust/end_of_spanned, r=jdmbors-564/+553
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.