about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2013-05-19Test fixes, use LLVMConstFCmp in ConstFCmpCorey Richardson-6/+6
2013-05-19Implement unimplemented const binopsCorey Richardson-0/+116
2013-05-19Reexport static trait methods on traits in the same module.Tom Lee-0/+12
2013-05-19auto merge of #6106 : thestinger/rust/iter, r=bstriebors-5/+5
I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1328/+1328
2013-05-18auto merge of #6603 : thestinger/rust/whitespace, r=thestingerbors-8/+4
2013-05-18minor automated whitespace fixesDaniel Micay-8/+4
2013-05-18xfail-fast run-pass/core-rt-smokeBrian Anderson-0/+2
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-5/+5
2013-05-17Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-0/+18
2013-05-18Made bytes!() accept a list of string, integer or char literalsMarvin Löbel-3/+102
2013-05-18rustc: relax limits on (u)int type limit lint. Fixes #6130.Huon Wilson-0/+20
2013-05-17Re-implement lint with less emphasis on item idsAlex Crichton-6/+42
This way it's much easier to add lints throughout compilation correctly, and functions on impls can alter the way lints are emitted.
2013-05-16auto merge of #6473 : nikomatsakis/rust/issue-5967-rvalue-immutability, ↵bors-0/+68
r=pcwalton Simpler version of PR #5974 based on new borrowck.
2013-05-16Add two tests for rvalue mutabilityNiko Matsakis-0/+68
2013-05-16Add BuiltinBounds to closure type: parse and handle subtyping,Niko Matsakis-0/+42
but do not integrate with kindck etc (requires a snapshot first)
2013-05-16auto merge of #6530 : huonw/rust/deriving-deepclone, r=bstriebors-9/+49
2013-05-16auto merge of #6531 : sammykim/rust/bytes, r=luqmanabors-0/+16
Fix #4334.
2013-05-16syntax: implement #[deriving(DeepClone)]. Fixes #6514.Huon Wilson-9/+49
2013-05-16Add a test for bytes!Sangeun Kim-0/+16
2013-05-15auto merge of #6502 : huonw/rust/no-auto-code, r=graydonbors-0/+15
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute and remove the majority of the actual auto_* code, leaving stubs to refer the user to the new syntax. Also, moves the useful contents of auto_encode.rs to more appropriate spots: tests and comments to deriving/encodable.rs, and the ExtCtxtMethods trait to build.rs (unused so far, but the method syntax might be nicer than using the mk_* fns in many instances).
2013-05-15auto merge of #6500 : kud1ing/rust/cleanup, r=bstriebors-17/+0
Fixes #6445
2013-05-16syntax: deprecate #[auto_{en,de}code] in favour of #[deriving({En,De}codable)].Huon Wilson-0/+15
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute and remove the majority of the actual code, leaving stubs to refer the user to the new syntax.
2013-05-15Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-0/+18
2013-05-15core::rt: Add a test of standalone use of the runtimeBrian Anderson-0/+18
2013-05-15auto merge of #6487 : recrack/rust/vec_len, r=thestingerbors-17/+17
Rename vec::len(var) to var.len() ``` libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax test/auxiliary test/bench test/run-pass ```
2013-05-15auto merge of #6485 : cmr/rust/local_rename_import_error, r=catamorphismbors-4/+14
2013-05-15remove deriving_eq, deriving_iter_bytes, deriving_clone (deprecated in 0.6)Lenny222-17/+0
2013-05-14auto merge of #6482 : catamorphism/rust/unsafe-fn-autoderef, r=catamorphismbors-4/+6
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-17/+17
2013-05-15Use parentheses for cond! macro instead of preceding pipesBrendan Zabarauskas-6/+6
This is temporary. Once the macro parser has improved or been re-written these can be removed.
2013-05-14Fix resolution testsCorey Richardson-2/+6
2013-05-14Add span to some import resolution errorsCorey Richardson-3/+3
2013-05-14Add test for resolution errorsCorey Richardson-1/+7
2013-05-15Add Scheme-style `cond!` macro to syntax::ext::expandBrendan Zabarauskas-0/+46
Addresses issue #6037
2013-05-14testsuite: Update and un-xfail unsafe-fn-autoderefTim Chevalier-4/+6
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-3/+3
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-92/+92
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 #6441 : alexcrichton/rust/issue-5531, r=luqmanabors-1/+1
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 #6388 : recrack/rust/each2_mut, r=pcwaltonbors-0/+38
- vec.rs :add 'each2_mut function' - testsuit : run-pass/vec-each2_mut.rs
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-1/+1
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-2/+2
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-8/+10
r? @graydon
2013-05-13core: Move locks, atomic rc to unstable::syncBrian Anderson-2/+2
2013-05-13test: Fix broken benchmark testPatrick Walton-3/+3
2013-05-13auto merge of #6443 : cmr/rust/resolution, r=bstriebors-1/+1
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-13auto merge of #6437 : Thiez/rust/atomic, r=Aatchbors-0/+15
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-13Better error for some unresolved importsCorey Richardson-1/+1
When trying to import nonexistent items from existing modules, specify that that is what happened, rather than just reporting "unresolved name".
2013-05-13Add vec.rs each2_mut testsuiteYoungmin Yoo-0/+38
2013-05-12auto merge of #6400 : cmr/rust/remove_useless_import_error, r=thestingerbors-2/+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.