about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-236/+239
2013-05-14compiletest: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-217/+220
2013-05-14rustpkg: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-105/+98
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-63/+47
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-554/+540
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-14auto merge of #6463 : bjz/rust/numeric-traits, r=thestingerbors-1/+445
This is part of the numeric trait reform tracked on issue #4819
2013-05-14auto merge of #6441 : alexcrichton/rust/issue-5531, r=luqmanabors-80/+81
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude. I'm not quite sure how resolution works with traits, but it seems to me like the public imports at the top-level of the core crate were leaking into the sub-crates, but that could also be working as intended. Regardless, things compile without the re-exports now.
2013-05-13auto merge of #6461 : thestinger/rust/fix_priority_queue, r=pcwaltonbors-56/+4
uninit() would result in potentially running a destructor on arbitrary memory if the Ord implementation throws
2013-05-13Upgrade libuvBrian Anderson-0/+0
2013-05-14Remove unnecessary infinity checkBrendan Zabarauskas-4/+2
2013-05-14Add ldexp and frexp functionsBrendan Zabarauskas-1/+184
2013-05-13auto merge of #6388 : recrack/rust/each2_mut, r=pcwaltonbors-2/+69
- vec.rs :add 'each2_mut function' - testsuit : run-pass/vec-each2_mut.rs
2013-05-13revert PriorityQueue to using init()Daniel Micay-56/+4
uninit() would result in potentially running a destructor on arbitrary memory if the Ord implementation throws
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-80/+81
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-13auto merge of #6387 : brson/rust/unstable, r=brsonbors-424/+434
r? @pcwalton * Move `SharedMutableState`, `LittleLock`, and `Exclusive` from `core::unstable` to `core::unstable::sync` * Modernize the `SharedMutableState` interface with methods * Rename `SharedMutableState` to `UnsafeAtomicRcBox` to match `RcBox`.
2013-05-13auto merge of #6417 : pcwalton/rust/exprs-in-patterns, r=pcwaltonbors-782/+893
r? @graydon
2013-05-13core: Rename SharedMutableState to UnsafeAtomicRcBoxBrian Anderson-131/+131
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-295/+313
2013-05-13core: Move unstable to unstable/mod.rsBrian Anderson-9/+1
2013-05-13test: Fix broken benchmark testPatrick Walton-3/+3
2013-05-13auto merge of #6443 : cmr/rust/resolution, r=bstriebors-6/+21
When trying to import nonexistent items from existing modules, specify that that is what happened, rather than just reporting "unresolved name". Ideally the error would be reported on the span of the import... but I do not see a way to get a span there. Help appreciated :smile:
2013-05-13librustdoc: Remove old-style extern mods from rustdoc tests.Patrick Walton-29/+5
2013-05-14Add inverse hyperbolic functionsBrendan Zabarauskas-0/+263
2013-05-13auto merge of #6437 : Thiez/rust/atomic, r=Aatchbors-5/+136
This pull request adds 4 atomic intrinsics to the compiler, in preparation for #5042. * `atomic_load(src: &int) -> int` performs an atomic sequentially consistent load. * `atomic_load_acq(src: &int) -> int` performs an atomic acquiring load. * `atomic_store(dst: &mut int, val: int)` performs an atomic sequentially consistent store. * `atomic_store_rel(dst: &mut int, val: int)` performs an atomic releasing store. For more information about the whole acquire/release thing: http://llvm.org/docs/Atomics.html r?
2013-05-13TidyMatthijs Hofstra-3/+3
2013-05-13Use backticks to delineate paths/identifiersCorey Richardson-2/+2
2013-05-13Correct #[always_inline] -> #[inline(always)] and __attribute((...)) -> ↵Luqman Aden-2/+2
__attribute__((...)).
2013-05-13Better error for some unresolved importsCorey Richardson-6/+21
When trying to import nonexistent items from existing modules, specify that that is what happened, rather than just reporting "unresolved name".
2013-05-12auto merge of #6438 : alexcrichton/rust/issue-5387, r=thestingerbors-58/+47
Instead link against the built libraries and directly invoke those. Closes #5387
2013-05-13Add vec.rs each2_mut testsuiteYoungmin Yoo-0/+38
2013-05-13Add vec.rs each2_mut functionYoungmin Yoo-2/+31
2013-05-12auto merge of #6400 : cmr/rust/remove_useless_import_error, r=thestingerbors-3/+1
Every unresolved import is reported. An additional error message isn't useful and obscures (imo) the real errors: I need to take it into account when looking at the error count.
2013-05-12actually fix failing testCorey Richardson-1/+1
2013-05-12libstd: Fix merge fallout.Patrick Walton-10/+14
2013-05-12libsyntax: Tighten up expressions in patterns to only allow identifiers or ↵Patrick Walton-26/+53
literals (possibly with a minus). This had very minimal fallout.
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-610/+700
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-104/+118
2013-05-12auto merge of #6348 : sstewartgallus/rust/incoming, r=brsonbors-1/+15
In this commit I added a useful utility type, named Void, that encapsulates the doable but annoying job of creating an uninhabited type. As well, a function on that type, named absurd, was created which is useful for ignoring the result of matching on that type. No unit tests were created because it is not possible to create an instance of this type to test the usage of. This type is useful because it is like NonCopyable in that it can be used to create a type with special characteristics without special bloat. For instance, instead of typing pub struct PhantomType { priv contents : () } for each void type one may want to use one can simply type pub struct PhantomType (Void);. This type make such special cases much easier to write.
2013-05-13Removed unnecessary check from build.rsMatthijs Hofstra-4/+1
2013-05-12auto merge of #6439 : bjz/rust/float-classify, r=brsonbors-20/+14
2013-05-13Make Float::classify matching more clear for f64 and f32Brendan Zabarauskas-20/+14
2013-05-12Don't create subprocesses for the `rust` commandAlex Crichton-58/+47
Instead link against the built libraries and directly invoke those.
2013-05-12Adds atomic_load, atomic_load_acq, atomic_store, and atomic_store_rel ↵Matthijs Hofstra-5/+139
intrinsics. The default versions (atomic_load and atomic_store) are sequentially consistent. The atomic_load_acq intrinsic acquires as described in [1]. The atomic_store_rel intrinsic releases as described in [1]. [1]: http://llvm.org/docs/Atomics.html
2013-05-12auto merge of #6414 : samebchase/rust/experimental, r=graydonbors-14/+101
Implemented to_str() for HashMap and HashSet Added tests. Minor formatting and stylistic cleanups.
2013-05-12auto merge of #6427 : catamorphism/rust/issue-6319, r=nikomatsakisbors-49/+84
r? @nikomatsakis In #6319, several people mentioned they ran into a "computing fictitious type" ICE in trans. This turns out to be because some of my recent changes to typeck::check::_match resulted in type errors getting reported with ty_err as the expected type, which meant the errors were suppressed, and typechecking incorrectly succeeded (since the errors weren't recorded). Changed the error messages in these cases not to use an expected type at all, rather, printing out a string describing the type that was expected (which is what the code originally did). The result is a bit repetitive and the proliferation of error-reporting functions in typeck::infer is a bit annoying, but I thought it was important to fix this now; more cleanup can happen later.
2013-05-12Add use declaration for container::SetSamuel Chase-1/+1
All tests pass now.
2013-05-12Fix failing testCorey Richardson-2/+1
2013-05-11auto merge of #6429 : gifnksm/rust/bigint-is_even, r=catamorphismbors-1/+12
`BigUint::is_even()` didn't return correct value.
2013-05-11auto merge of #6431 : catamorphism/rust/warnings, r=catamorphismbors-144/+58
Just cleaning up warnings.
2013-05-11clean up the last bit of warningsCorey Richardson-12/+11