summary refs log tree commit diff
path: root/src/test/bench
AgeCommit message (Collapse)AuthorLines
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-1/+13
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07Use slice syntax instead of slice_to, etc.Nick Cameron-12/+12
2014-10-02Test fixes from the rollupAlex Crichton-2/+2
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-19/+9
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-12/+12
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-13/+1
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02tests: remove uses of Gc.Eduard Burtescu-19/+9
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-1/+13
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-12/+12
2014-10-01Remove all use of librustuvAaron Turon-25/+3
2014-09-25Relicense shootout-fasta-redux.rs to the shootout license.Guillaume Pinot-8/+38
Everyone agreed. Fix #17078
2014-09-18auto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brsonbors-22/+77
Everyone agreed. Fix #17064, fix #17072 @brson OK?
2014-09-17rollup merge of #17309 : aturon/deprecate-libnumAlex Crichton-128/+0
2014-09-17Relicense shootout-fasta.rs ti the shootout license.Guillaume Pinot-14/+39
Everyone agreed. Fix #17072
2014-09-17Relicense shootout-spectralnorm.rs to the shootout licenseGuillaume Pinot-8/+38
Everyone agreed. Fix #17064
2014-09-16Fallout from renamingAaron Turon-47/+47
2014-09-16Deprecate libnum in favor of rust-lang/numAaron Turon-128/+0
This is part of the migration of crates into the Cargo ecosystem. There is now an external repository https://github.com/rust-lang/num for bignums. The single use of libnum elsewhere in the repository is for a shootout benchmark, which is being moved into the external crate. Due to deprecation, this is a: [breaking-change]
2014-09-09rollup merge of #17096 : TeXitoi/relicense-shootout-chameneos-reduxAlex Crichton-8/+38
2014-09-09rollup merge of #17077 : TeXitoi/relicense-shootout-nbodyAlex Crichton-8/+38
2014-09-08Relicense shootout-chameneos-redux.rs to the shootout license.Guillaume Pinot-8/+38
Everyone agreed. fix #17076
2014-09-07Relicense shootout-nbody.rs to the shootout licenseGuillaume Pinot-8/+38
Everyone agreed. fix #17073
2014-09-07Relicense shootout-reverse-complement.rs to the shootout license.Guillaume Pinot-8/+38
Everyone agreed. Fix #17065
2014-09-05Optimize Slice::reverseBrian Anderson-195/+1
This makes the completely safe implementation of fannkuchredux perform the same as C++. Yay, Rust.
2014-09-04Update fannkuchredux benchmarkBrian Anderson-48/+325
From the discussion on reddit: http://www.reddit.com/r/rust/comments/2fenlg/benchmark_improvement_fannkuchredux/ This adds two variants: the primary, that uses an unsafe block, and a secondary that is completely safe. The one with the unsafe block matches clang's performance and beats gcc's.
2014-08-30Unify non-snake-case lints and non-uppercase statics lintsP1start-2/+2
This unifies the `non_snake_case_functions` and `uppercase_variables` lints into one lint, `non_snake_case`. It also now checks for non-snake-case modules. This also extends the non-camel-case types lint to check type parameters, and merges the `non_uppercase_pattern_statics` lint into the `non_uppercase_statics` lint. Because the `uppercase_variables` lint is now part of the `non_snake_case` lint, all non-snake-case variables that start with lowercase characters (such as `fooBar`) will now trigger the `non_snake_case` lint. New code should be updated to use the new `non_snake_case` lint instead of the previous `non_snake_case_functions` and `uppercase_variables` lints. All use of the `non_uppercase_pattern_statics` should be replaced with the `non_uppercase_statics` lint. Any code that previously contained non-snake-case module or variable names should be updated to use snake case names or disable the `non_snake_case` lint. Any code with non-camel-case type parameters should be changed to use camel case or disable the `non_camel_case_types` lint. [breaking-change]
2014-08-28auto merge of #16664 : aturon/rust/stabilize-option-result, r=alexcrichtonbors-4/+4
Per API meeting https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-13.md # Changes to `core::option` Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues. However, a few methods have been deprecated, either due to lack of use or redundancy: * `take_unwrap`, `get_ref` and `get_mut_ref` (redundant, and we prefer for this functionality to go through an explicit .unwrap) * `filtered` and `while` * `mutate` and `mutate_or_set` * `collect`: this functionality is being moved to a new `FromIterator` impl. # Changes to `core::result` Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues. * `collect`: this functionality is being moved to a new `FromIterator` impl. * `fold_` is deprecated due to lack of use * Several methods found in `core::option` are added here, including `iter`, `as_slice`, and variants. Due to deprecations, this is a: [breaking-change]
2014-08-28Fallout from stabilizing core::optionAaron Turon-4/+4
2014-08-27Implement generalized object and type parameter bounds (Fixes #16462)Niko Matsakis-4/+4
2014-08-26Use temp vars for implicit coercion to ^[T]Nick Cameron-2/+3
2014-08-18regex: Enable test on Windowsklutzy-2/+0
Fixes #13725
2014-08-15auto merge of #16435 : vadimcn/rust/windows, r=pcwaltonbors-1/+1
Using "win32" to mean "Windows" is confusing, especially now, that Rust supports win64 builds. Let's call spade a spade.
2014-08-12Replace "ignore-win32" in tests with "ignore-windows"Vadim Chugunov-1/+1
2014-08-09Fix misspelled comments for tests.Joseph Crail-9/+9
2014-07-26Remove managed_box gate from testsBrian Anderson-2/+1
No longer does anything.
2014-07-26Relicense shootout-k-nucleotide.rsGuillaume Pinot-8/+38
Everyone agreed except @thestinger. As @thestinger contribution on this file is trivial, we can relicense it. Related to #14248, close #15330
2014-07-24librustc: Stop desugaring `for` expressions and translate them directly.Patrick Walton-3/+4
This makes edge cases in which the `Iterator` trait was not in scope and/or `Option` or its variants were not in scope work properly. This breaks code that looks like: struct MyStruct { ... } impl MyStruct { fn next(&mut self) -> Option<int> { ... } } for x in MyStruct { ... } { ... } Change ad-hoc `next` methods like the above to implementations of the `Iterator` trait. For example: impl Iterator<int> for MyStruct { fn next(&mut self) -> Option<int> { ... } } Closes #15392. [breaking-change]
2014-07-24auto merge of #15424 : TeXitoi/rust/relicense-shootout-threadring, r=brsonbors-8/+38
Everyone agreed. Related to #14248, close #15328 @brson OK?
2014-07-22auto merge of #15867 : cmr/rust/rewrite-lexer4, r=alexcrichtonbors-0/+4
2014-07-21Add a ton of ignore-lexer-testCorey Richardson-0/+4
2014-07-19librustc: Implement lifetime elision.Patrick Walton-1/+1
This implements RFC 39. Omitted lifetimes in return values will now be inferred to more useful defaults, and an error is reported if a lifetime in a return type is omitted and one of the two lifetime elision rules does not specify what it should be. This primarily breaks two uncommon code patterns. The first is this: unsafe fn get_foo_out_of_thin_air() -> &Foo { ... } This should be changed to: unsafe fn get_foo_out_of_thin_air() -> &'static Foo { ... } The second pattern that needs to be changed is this: enum MaybeBorrowed<'a> { Borrowed(&'a str), Owned(String), } fn foo() -> MaybeBorrowed { Owned(format!("hello world")) } Change code like this to: enum MaybeBorrowed<'a> { Borrowed(&'a str), Owned(String), } fn foo() -> MaybeBorrowed<'static> { Owned(format!("hello world")) } Closes #15552. [breaking-change]
2014-07-18auto merge of #15743 : Ryman/rust/mandelbrot_fix, r=alexcrichtonbors-3/+3
Matches the official sample output (N=200) again. cc #15408
2014-07-17Rename functions in the CloneableVector traitAdolfo OchagavĂ­a-3/+3
* Deprecated `to_owned` in favor of `to_vec` * Deprecated `into_owned` in favor of `into_vec` [breaking-change]
2014-07-13mandelbrot: fix overlapping buffersKevin Butler-3/+3
2014-07-08std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`.Richo Healey-12/+12
[breaking-change]
2014-07-04Relicense shootout-threadring.rsGuillaume Pinot-8/+38
Everyone agreed. Related to #14248, close #15328
2014-07-02auto merge of #15085 : brson/rust/stridx, r=alexcrichtonbors-1/+1
Being able to index into the bytes of a string encourages poor UTF-8 hygiene. To get a view of `&[u8]` from either a `String` or `&str` slice, use the `as_bytes()` method. Closes #12710. [breaking-change] If the diffstat is any indication this shouldn't have a huge impact but it will have some. Most changes in the `str` and `path` module. A lot of the existing usages were in tests where ascii is expected. There are a number of other legit uses where the characters are known to be ascii.
2014-07-01rustc: Remove `&str` indexing from the language.Brian Anderson-1/+1
Being able to index into the bytes of a string encourages poor UTF-8 hygiene. To get a view of `&[u8]` from either a `String` or `&str` slice, use the `as_bytes()` method. Closes #12710. [breaking-change]
2014-07-01relicense shootout-mandelbrot.rsGuillaume Pinot-8/+39
Part of #14248 Main authors: - @Ryman: OK - @TeXitoi: OK - @pcwalton: OK Minor authors: - @brson: OK - @alexcrichton: OK - @kballard: OK Remark: @tedhorst was a main contributor, but its contribution disapear with @pcwalton rewrite at af4ea11
2014-06-28auto merge of #15208 : alexcrichton/rust/snapshots, r=pcwaltonbors-2/+2
This change registers new snapshots, allowing `*T` to be removed from the language. This is a large breaking change, and it is recommended that if compiler errors are seen that any FFI calls are audited to determine whether they should be actually taking `*mut T`.
2014-06-28Rename all raw pointers as necessaryAlex Crichton-2/+2