]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agolibrustc: Don't allow enum struct variants to shadow structs.
Luqman Aden [Thu, 20 Jun 2013 23:14:57 +0000 (19:14 -0400)]
librustc: Don't allow enum struct variants to shadow structs.

11 years agoauto merge of #7128 : yichoi/rust/fix_sometc, r=brson
bors [Thu, 20 Jun 2013 18:35:34 +0000 (11:35 -0700)]
auto merge of #7128 : yichoi/rust/fix_sometc, r=brson

- Fix stat struct for Android (found by SEGV at run-pass/stat.rs)
- Adjust some test cases to rpass for Android
- Modify some script to rpass for Android

11 years agoUpdate snapshots.txt
James Miller [Thu, 20 Jun 2013 14:42:55 +0000 (02:42 +1200)]
Update snapshots.txt

11 years agolibrust: cleanup warnings (except 1)
James Miller [Thu, 20 Jun 2013 05:52:02 +0000 (17:52 +1200)]
librust: cleanup warnings (except 1)

11 years agolibextra: cleanup warnings
James Miller [Thu, 20 Jun 2013 05:44:34 +0000 (17:44 +1200)]
libextra: cleanup warnings

11 years agolibsyntax: cleanup warnings
James Miller [Thu, 20 Jun 2013 05:44:12 +0000 (17:44 +1200)]
libsyntax: cleanup warnings

11 years agolibstd: cleanup warnings
James Miller [Thu, 20 Jun 2013 05:41:54 +0000 (17:41 +1200)]
libstd: cleanup warnings

11 years agoRemove all #[cfg(stage0)]-protected code
James Miller [Thu, 20 Jun 2013 05:15:50 +0000 (17:15 +1200)]
Remove all #[cfg(stage0)]-protected code

New snapshot means this can all go. Also removes places that have
comments that say they are workarounds for stage0 errors.

11 years ago_Actually_ xfail debuginfo tests
James Miller [Thu, 20 Jun 2013 12:23:42 +0000 (00:23 +1200)]
_Actually_ xfail debuginfo tests

11 years agoignore inherited environment test under valgrind r=snapshot
James Miller [Thu, 20 Jun 2013 10:43:21 +0000 (22:43 +1200)]
ignore inherited environment test under valgrind r=snapshot

11 years agoxfail box-related debug-info tests r=snapshot
James Miller [Thu, 20 Jun 2013 10:03:05 +0000 (22:03 +1200)]
xfail box-related debug-info tests r=snapshot

11 years agocore -> extra for mac
James Miller [Thu, 20 Jun 2013 08:47:22 +0000 (20:47 +1200)]
core -> extra for mac

11 years agoIgnore rustpkg tests
James Miller [Thu, 20 Jun 2013 06:07:06 +0000 (18:07 +1200)]
Ignore rustpkg tests

11 years agoFix update snapshot script for rename
James Miller [Thu, 20 Jun 2013 03:10:08 +0000 (15:10 +1200)]
Fix update snapshot script for rename

11 years agolibsyntax: Remove `drop` as a keyword.
Luqman Aden [Thu, 20 Jun 2013 01:12:40 +0000 (21:12 -0400)]
libsyntax: Remove `drop` as a keyword.

11 years agorustc: Dispose of LLVM passes in test cases
Brian Anderson [Wed, 19 Jun 2013 22:18:25 +0000 (15:18 -0700)]
rustc: Dispose of LLVM passes in test cases

11 years agostd::rt: Work around a dynamic borrowck bug
Brian Anderson [Tue, 11 Jun 2013 00:46:49 +0000 (17:46 -0700)]
std::rt: Work around a dynamic borrowck bug

11 years agorusti: Disable tests on macos harder
Brian Anderson [Wed, 19 Jun 2013 05:17:58 +0000 (22:17 -0700)]
rusti: Disable tests on macos harder

11 years agostd: Work around some failing 'run' tests when valgrinding. #7224
Brian Anderson [Wed, 19 Jun 2013 02:52:05 +0000 (19:52 -0700)]
std: Work around some failing 'run' tests when valgrinding. #7224

Under valgrind on 64->32 cross compiles the dynamic linker is emitting
some error messages on stderr, which interferes with the tests that
are checking stderr.

11 years agorusti: disable tests on 32bit mac. r=burningtree.
Graydon Hoare [Tue, 18 Jun 2013 23:43:49 +0000 (16:43 -0700)]
rusti: disable tests on 32bit mac. r=burningtree.

11 years agoxfail std::num::complex::test_norm on x86, r=burningtree.
Graydon Hoare [Tue, 18 Jun 2013 21:48:15 +0000 (14:48 -0700)]
xfail std::num::complex::test_norm on x86, r=burningtree.

11 years agoreplace #[inline(always)] with #[inline]. r=burningtree.
Graydon Hoare [Tue, 18 Jun 2013 21:45:18 +0000 (14:45 -0700)]
replace #[inline(always)] with #[inline]. r=burningtree.

11 years agotest: xfail bench/task-perf-one-million. OOM on 32-bit linux w/o opts
Brian Anderson [Tue, 18 Jun 2013 20:29:31 +0000 (13:29 -0700)]
test: xfail bench/task-perf-one-million. OOM on 32-bit linux w/o opts

11 years agoTurn off jemalloc
Brian Anderson [Tue, 18 Jun 2013 19:03:14 +0000 (12:03 -0700)]
Turn off jemalloc

11 years agoauto merge of #7197 : rkbodenner/rust/doc-for-lib-move, r=brson
bors [Mon, 17 Jun 2013 22:54:56 +0000 (15:54 -0700)]
auto merge of #7197 : rkbodenner/rust/doc-for-lib-move, r=brson

Was updating some code of mine to use the new `std`/`extra` library names, and noticed a place where docs for `std::libc` hadn't been updated. Then I updated some top-level docs for the new libraries' names, too.

11 years agoauto merge of #7131 : Blei/rust/windows-dynamic-lib, r=graydon
bors [Mon, 17 Jun 2013 21:58:01 +0000 (14:58 -0700)]
auto merge of #7131 : Blei/rust/windows-dynamic-lib, r=graydon

The code compiles and runs under windows now, but I couldn't look up any
symbol from the current executable (dlopen(NULL)), and calling looked
up external function handles doesn't seem to work correctly under windows.

This the beginning of a fix for #7095.

11 years agoauto merge of #7134 : vadimcn/rust/DIBuilder, r=jdm
bors [Mon, 17 Jun 2013 21:01:35 +0000 (14:01 -0700)]
auto merge of #7134 : vadimcn/rust/DIBuilder, r=jdm

This commit fixes rustc's debug info generation and turns debug-info tests back on.

The old generator used to write out LLVM metadata directly, however it seems that debug metadata format is not stable and keeps changing from release to release.  So I wrapped LLVM's official debug info API - the DIBuilder class, and now rustc will use that.

One bit of old functionality that still doesn't work, is debug info for function arguments.  Someone more familiar with the compiler guts will need to look into that.

Also, unfortunately, debug info is still won't work on Windows,- due to a LLVM bug (http://llvm.org/bugs/show_bug.cgi?id=16249).

Resolves issues #5836, #5848, #6814

11 years agoauto merge of #7192 : brson/rust/rpath, r=thestinger
bors [Mon, 17 Jun 2013 19:40:08 +0000 (12:40 -0700)]
auto merge of #7192 : brson/rust/rpath, r=thestinger

r? @thestinger

This reverts commit 708395d65d689080cc96dd091adab3fc4c5c3f27.

Fixes #7191.

11 years agoRevert "stop using an absolute rpath"
Brian Anderson [Sun, 16 Jun 2013 22:41:33 +0000 (15:41 -0700)]
Revert "stop using an absolute rpath"

This reverts commit 708395d65d689080cc96dd091adab3fc4c5c3f27.

11 years agoauto merge of #7202 : pcwalton/rust/resolve-speed, r=pcwalton
bors [Mon, 17 Jun 2013 17:40:21 +0000 (10:40 -0700)]
auto merge of #7202 : pcwalton/rust/resolve-speed, r=pcwalton

I'm pretty sure this got adequately reviewed by a combination of @nikomatsakis and @graydon so I'm rubber stamping it because I really want this in (it makes it much less likely for me to swap, allowing me to get more work done).

11 years agorustc: map node ids through a table that ensures bitset indexes in dataflow are dense
Graydon Hoare [Thu, 13 Jun 2013 17:07:34 +0000 (10:07 -0700)]
rustc: map node ids through a table that ensures bitset indexes in dataflow are dense

11 years agoFixed rebase fallout .
Vadim Chugunov [Mon, 17 Jun 2013 15:42:05 +0000 (08:42 -0700)]
Fixed rebase fallout .

11 years agoRefactoring and tidy warnings cleanup.
Vadim Chugunov [Fri, 14 Jun 2013 18:59:49 +0000 (11:59 -0700)]
Refactoring and tidy warnings cleanup.

11 years agoMade unimplemented debuginfo a note rather than a compiler error.
Vadim Chugunov [Fri, 14 Jun 2013 19:08:59 +0000 (12:08 -0700)]
Made unimplemented debuginfo a note rather than a compiler error.

11 years agoConverted vec::map to member.
Vadim Chugunov [Wed, 12 Jun 2013 01:06:38 +0000 (18:06 -0700)]
Converted vec::map to member.

11 years agoFixed remaining issues to pass debug-test/* tests.
Vadim Chugunov [Fri, 14 Jun 2013 19:23:42 +0000 (12:23 -0700)]
Fixed remaining issues to pass debug-test/* tests.
Made debugger scripts source line insensitive.

11 years agoFixed compile warnings.
Vadim Chugunov [Tue, 11 Jun 2013 19:41:09 +0000 (12:41 -0700)]
Fixed compile warnings.
Fixed whitespace "errors".

11 years agoRemoved extraneous string allocations.
Vadim Chugunov [Tue, 11 Jun 2013 01:34:51 +0000 (18:34 -0700)]
Removed extraneous string allocations.
Misc refactoring.

11 years agoDebug loc for local var declarations
Vadim Chugunov [Mon, 10 Jun 2013 23:28:10 +0000 (16:28 -0700)]
Debug loc for local var declarations

11 years agoMove "return" basic block after all other function blocks.
Vadim Chugunov [Mon, 10 Jun 2013 19:32:12 +0000 (12:32 -0700)]
Move "return" basic block after all other function blocks.

11 years agoMade the while DebugContext mutable, not just created_* hashes
Vadim Chugunov [Tue, 11 Jun 2013 07:57:25 +0000 (00:57 -0700)]
Made the while DebugContext mutable, not just created_* hashes
Disabled create_arg

11 years agoUse DIBuilder in debuginfo
Vadim Chugunov [Fri, 14 Jun 2013 18:38:29 +0000 (11:38 -0700)]
Use DIBuilder in debuginfo

11 years agoauto merge of #7199 : Kimundi/rust/master, r=bstrie
bors [Mon, 17 Jun 2013 15:37:18 +0000 (08:37 -0700)]
auto merge of #7199 : Kimundi/rust/master, r=bstrie

- Fixed tests
- Added methods
- Renamed casting methods to be shorter
- Added unsafe versions

Closes #7150

11 years agoauto merge of #7174 : SiegeLord/rust/remove_trim, r=brson
bors [Mon, 17 Jun 2013 14:43:06 +0000 (07:43 -0700)]
auto merge of #7174 : SiegeLord/rust/remove_trim, r=brson

This change prevents the indentation in code blocks inside the /// doc comments
from being eaten. The indentation that is the same across the consecutive doc
comments is removed by the uindent_pass in librustdoc.

The bug can be seen, e.g., here: http://static.rust-lang.org/doc/std/iterator.html#example-12

I also altered how the block comments are treated, for consistency. There isn't much testing done on the documentation output (I added a few tests of my own for the modified function), so I don't know if anything relied on the previous behavior. I checked a number of documentation files and observed either no change in output or changes that consistent of the above bug being fixed.

11 years agoauto merge of #7195 : brson/rust/timertest, r=bstrie
bors [Mon, 17 Jun 2013 13:52:14 +0000 (06:52 -0700)]
auto merge of #7195 : brson/rust/timertest, r=bstrie

11 years agostd: fix stat struct of android (SEGV error from run-pass/stat.rs on android)
Young-il Choi [Mon, 17 Jun 2013 09:53:33 +0000 (18:53 +0900)]
std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)

11 years agotest: adjust some test cases of run-pass for android
Young-il Choi [Mon, 17 Jun 2013 09:50:29 +0000 (18:50 +0900)]
test: adjust some test cases of run-pass for android

11 years agoetc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.sh
Young-il Choi [Mon, 17 Jun 2013 09:46:04 +0000 (18:46 +0900)]
etc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.sh

11 years agoetc: modify adb_run_wrapper.sh to avoid 'expr' unrecognization at some android devices
Young-il Choi [Mon, 17 Jun 2013 09:44:30 +0000 (18:44 +0900)]
etc: modify adb_run_wrapper.sh to avoid 'expr' unrecognization at some android devices

11 years agomk: tests.mk simplify the method to clean arm testing directory
Young-il Choi [Mon, 17 Jun 2013 09:41:22 +0000 (18:41 +0900)]
mk: tests.mk simplify the method to clean arm testing directory

11 years agoImproved std::ascii
Marvin Löbel [Sun, 16 Jun 2013 09:04:53 +0000 (11:04 +0200)]
Improved std::ascii
- Fixed tests
- Added methods
- Renamed casting methods to be shorter

closes #7150

11 years agoauto merge of #7198 : huonw/rust/slice-zeros, r=Aatch
bors [Mon, 17 Jun 2013 07:16:03 +0000 (00:16 -0700)]
auto merge of #7198 : huonw/rust/slice-zeros, r=Aatch

11 years agoReproduce text changes from @brson PR 7176 and fix a typo therein
Ralph Bodenner [Mon, 17 Jun 2013 07:07:52 +0000 (00:07 -0700)]
Reproduce text changes from @brson PR 7176 and fix a typo therein

11 years agostd: add Zero impls for &[] and &str.
Huon Wilson [Mon, 17 Jun 2013 07:05:51 +0000 (17:05 +1000)]
std: add Zero impls for &[] and &str.

11 years agoUpdate doc references to new names for std, extra, and std::libc
Ralph Bodenner [Mon, 17 Jun 2013 06:21:49 +0000 (23:21 -0700)]
Update doc references to new names for std, extra, and std::libc

11 years agoauto merge of #7184 : smvv/rust/doc_css, r=brson
bors [Mon, 17 Jun 2013 03:16:01 +0000 (20:16 -0700)]
auto merge of #7184 : smvv/rust/doc_css, r=brson

After reading issue #7077, all header elements had a border. In my opinion those borders are a bit too much distraction. I tried a different approach with increasing the padding and font size, and omitting the borders.

Comparison:
http://smvv.io/rust-doc/std/hashmap.html
http://static.rust-lang.org/doc/std/hashmap.html

Note: the highlighted code blocks are not caused by this commit.

I left the border of the code block / function signature as is. The reason behind that is that code blocks are really block elements, while headers are not. What do you guys think?

11 years agostd::rt: Reduce the delay on a timer test. Slow
Brian Anderson [Mon, 17 Jun 2013 02:24:51 +0000 (19:24 -0700)]
std::rt: Reduce the delay on a timer test. Slow

11 years agoauto merge of #7157 : sstewartgallus/rust/master, r=brson
bors [Mon, 17 Jun 2013 00:48:58 +0000 (17:48 -0700)]
auto merge of #7157 : sstewartgallus/rust/master, r=brson

I did a little bit of cleanup work in driver.rs. It's not much but hey little steps.

11 years agoauto merge of #7165 : brson/rust/releasenotes, r=thestinger
bors [Sun, 16 Jun 2013 22:21:55 +0000 (15:21 -0700)]
auto merge of #7165 : brson/rust/releasenotes, r=thestinger

11 years agoMore 0.7 release notes
Brian Anderson [Sat, 15 Jun 2013 23:57:37 +0000 (16:57 -0700)]
More 0.7 release notes

11 years agoauto merge of #7186 : dotdash/rust/landing_pads, r=pcwalton
bors [Sun, 16 Jun 2013 18:48:57 +0000 (11:48 -0700)]
auto merge of #7186 : dotdash/rust/landing_pads, r=pcwalton

Currently, cleanup blocks are only reused when there are nested scopes, the
child scope's cleanup block will terminate with a jump to the parent
scope's cleanup block. But within a single scope, adding or revoking
any cleanup will force a fresh cleanup block. This means quadratic
growth with the number of allocations in a scope, because each
allocation needs a landing pad.

Instead of forcing a fresh cleanup block, we can keep a list chained
cleanup blocks that form a prefix of the currently required cleanups.
That way, the next cleanup block only has to handle newly added
cleanups. And by keeping the whole list instead of just the latest
block, we can also handle revocations more efficiently, by only
dropping those blocks that are no longer required, instead of all of
them.

Reduces the size of librustc by about 5% and the time required to build
it by about 10%.

11 years agoDo not strip leading whitespace when parsing doc comments.
SiegeLord [Fri, 14 Jun 2013 22:37:29 +0000 (18:37 -0400)]
Do not strip leading whitespace when parsing doc comments.

This change prevents the indentation in code blocks inside the /// doc comments
from being eaten. The indentation that is the same across the consecutive doc
comments is removed by the uindent_pass in librustdoc.

11 years agoauto merge of #7177 : huonw/rust/unfold-fix, r=thestinger
bors [Sun, 16 Jun 2013 17:55:02 +0000 (10:55 -0700)]
auto merge of #7177 : huonw/rust/unfold-fix, r=thestinger

11 years agoauto merge of #7167 : nikomatsakis/rust/ref-bindings-explicit-copy-in-generics, r...
bors [Sun, 16 Jun 2013 16:54:59 +0000 (09:54 -0700)]
auto merge of #7167 : nikomatsakis/rust/ref-bindings-explicit-copy-in-generics, r=brson

Two changes:

1. Make type parameters move by default, even if they have a Copy bound. After all, they could be bound to `~T` or `~[]`. Also, this is a necessary step towards removing `copy` keyword and replacing with clone.

2. Make it illegal to move from `*T`. This is dangerous in a "moves-by-default" scenario, because it's very easy to move when working with a `*T` pointer. Also, it requires zeroing memory, which we hope to do away with someday.

11 years agoCorrect docs
Niko Matsakis [Sun, 16 Jun 2013 16:48:08 +0000 (12:48 -0400)]
Correct docs

11 years agoCorrect tutorial tests
Niko Matsakis [Sun, 16 Jun 2013 01:36:55 +0000 (21:36 -0400)]
Correct tutorial tests

11 years agoMake it illegal to move from *T. This interacts poorly with moves-based-on-type,
Niko Matsakis [Sun, 16 Jun 2013 00:17:59 +0000 (20:17 -0400)]
Make it illegal to move from *T. This interacts poorly with moves-based-on-type,
since it creates moves that were not apparent. It also turns out to be not
widely used.

11 years agoMake type parameters not implicitly copyable, even if they have the Copy bound.
Niko Matsakis [Thu, 13 Jun 2013 21:42:01 +0000 (17:42 -0400)]
Make type parameters not implicitly copyable, even if they have the Copy bound.

Consider: T:Copy could be bound to ~T, which is not implicitly copyable.

11 years agoRemove moves from *T and implement in another way
Niko Matsakis [Sun, 16 Jun 2013 00:15:52 +0000 (20:15 -0400)]
Remove moves from *T and implement in another way

11 years agoAdd copies to type params with Copy bound
Niko Matsakis [Sun, 16 Jun 2013 00:26:59 +0000 (20:26 -0400)]
Add copies to type params with Copy bound

11 years agocorrect ASM_COMMENTS Makefile option
Niko Matsakis [Sun, 16 Jun 2013 00:15:38 +0000 (20:15 -0400)]
correct ASM_COMMENTS Makefile option

11 years agoPartial fix for #7158: Save EDX in morestack on x86-32
Niko Matsakis [Sat, 15 Jun 2013 20:18:39 +0000 (16:18 -0400)]
Partial fix for #7158: Save EDX in morestack on x86-32

11 years agoauto merge of #7171 : bstrie/rust/delbin, r=thestinger
bors [Sun, 16 Jun 2013 15:57:58 +0000 (08:57 -0700)]
auto merge of #7171 : bstrie/rust/delbin, r=thestinger

11 years agoAvoid quadratic growth of cleanup blocks
Björn Steinbrink [Sun, 16 Jun 2013 12:51:50 +0000 (14:51 +0200)]
Avoid quadratic growth of cleanup blocks

Currently, cleanup blocks are only reused when there are nested scopes, the
child scope's cleanup block will terminate with a jump to the parent
scope's cleanup block. But within a single scope, adding or revoking
any cleanup will force a fresh cleanup block. This means quadratic
growth with the number of allocations in a scope, because each
allocation needs a landing pad.

Instead of forcing a fresh cleanup block, we can keep a list chained
cleanup blocks that form a prefix of the currently required cleanups.
That way, the next cleanup block only has to handle newly added
cleanups. And by keeping the whole list instead of just the latest
block, we can also handle revocations more efficiently, by only
dropping those blocks that are no longer required, instead of all of
them.

Reduces the size of librustc by about 5% and the time required to build
it by about 10%.

11 years agoRemove h[123] border and increase their padding to better readability
Sander Mathijs van Veen [Sun, 16 Jun 2013 15:39:13 +0000 (17:39 +0200)]
Remove h[123] border and increase their padding to better readability

11 years agoauto merge of #7166 : brson/rust/fuzzer, r=pcwalton
bors [Sun, 16 Jun 2013 15:03:57 +0000 (08:03 -0700)]
auto merge of #7166 : brson/rust/fuzzer, r=pcwalton

It is suffering from a bad case of megabitrot. #5247

11 years agoauto merge of #7163 : brson/rust/reinterpret-cast, r=thestinger
bors [Sun, 16 Jun 2013 13:31:00 +0000 (06:31 -0700)]
auto merge of #7163 : brson/rust/reinterpret-cast, r=thestinger

11 years agoauto merge of #7160 : kballard/rust/terminfo-parm-i-fix, r=thestinger
bors [Sun, 16 Jun 2013 12:33:59 +0000 (05:33 -0700)]
auto merge of #7160 : kballard/rust/terminfo-parm-i-fix, r=thestinger

My latest terminfo work introduced a bug in the handling of %i, which was noticed by @huonw after the PR was already merged in.

r? @thestinger

11 years agoauto merge of #7159 : Blei/rust/free-glue-no-destructor, r=graydon
bors [Sun, 16 Jun 2013 11:40:01 +0000 (04:40 -0700)]
auto merge of #7159 : Blei/rust/free-glue-no-destructor, r=graydon

The free glue shouldn't be called for structs, and the drop glue already
contains the destructor.

11 years agoauto merge of #7156 : Dretch/rust/float-hash, r=graydon
bors [Sun, 16 Jun 2013 10:43:03 +0000 (03:43 -0700)]
auto merge of #7156 : Dretch/rust/float-hash, r=graydon

It can sometimes be useful to have maps/sets of floating point values.

Doing arithmetic with floats and then using them as keys is, of course, not a good idea.

11 years agoauto merge of #7155 : Blei/rust/drop-glue-alloca, r=graydon
bors [Sun, 16 Jun 2013 09:46:08 +0000 (02:46 -0700)]
auto merge of #7155 : Blei/rust/drop-glue-alloca, r=graydon

Removes one alloca and store from the drop glue of @ boxes. This speeds
up the rustc build by 1s (might be noise, though).

11 years agoauto merge of #7142 : alexcrichton/rust/deriving-zero, r=pcwalton
bors [Sun, 16 Jun 2013 08:52:09 +0000 (01:52 -0700)]
auto merge of #7142 : alexcrichton/rust/deriving-zero, r=pcwalton

This allows mass-initialization of large structs without having to specify all the fields.

I'm a bit hesitant, but I wanted to get this out there. I don't really like using the `Zero` trait, because it doesn't really make sense for a type like `HashMap` to use `Zero` as the 'blank allocation' trait. In theory there'd be a new trait, but then that's adding cruft to the language which may not necessarily need to be there.

I do think that this can be useful, but I only implemented `Zero` on the basic types where I thought it made sense, so it may not be all that usable yet. (opinions?)

11 years agostd: fix UnfoldrIterator cross-crate.
Huon Wilson [Sun, 16 Jun 2013 03:01:08 +0000 (13:01 +1000)]
std: fix UnfoldrIterator cross-crate.

11 years agoauto merge of #7137 : erickt/rust/from-elem-fixme, r=thestinger
bors [Sun, 16 Jun 2013 07:58:09 +0000 (00:58 -0700)]
auto merge of #7137 : erickt/rust/from-elem-fixme, r=thestinger

This is to make sure we track optimizing `vec::from_elem`.

11 years agoauto merge of #7123 : huonw/rust/more-str, r=thestinger
bors [Sun, 16 Jun 2013 07:04:13 +0000 (00:04 -0700)]
auto merge of #7123 : huonw/rust/more-str, r=thestinger

Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.)

This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.

11 years agoauto merge of #7149 : thestinger/rust/vec, r=graydon
bors [Sun, 16 Jun 2013 06:10:12 +0000 (23:10 -0700)]
auto merge of #7149 : thestinger/rust/vec, r=graydon

11 years agofix benchmark and the tutorials
Daniel Micay [Sun, 16 Jun 2013 00:53:30 +0000 (20:53 -0400)]
fix benchmark and the tutorials

11 years agoauto merge of #7162 : thestinger/rust/iterator, r=brson
bors [Sun, 16 Jun 2013 05:16:28 +0000 (22:16 -0700)]
auto merge of #7162 : thestinger/rust/iterator, r=brson

11 years agoDelete some binary files from the test suite
Ben Striegel [Sun, 16 Jun 2013 04:37:53 +0000 (00:37 -0400)]
Delete some binary files from the test suite

11 years agoauto merge of #7114 : pnkfelix/rust/issue3961-fix-whitespace-detection, r=brson
bors [Sun, 16 Jun 2013 03:40:14 +0000 (20:40 -0700)]
auto merge of #7114 : pnkfelix/rust/issue3961-fix-whitespace-detection, r=brson

r?  (yes, the review request is back, now that I got it building against incom... I mean master!)

(Attempting to port from orphaned pull-request #6764 )

Fix for #3961. Also includes a test case to illustrate the issues. (All of the entries that say "should align" should align with each other, and the four lines near the end that say "compare _" for _ in {A,B,C,D} should line up with each other.)

Before applying this change set:
-- the "(should align)"'s are all over the place, and the form/line feeding spaces are not cut out as one might or might not expect.
-- compare B and D do not match A and C.

(To be honest, its hard to really say what the right behavior is here, and people who are expecting a particular behavior out of a pretty printer in these cases may well get burned.)

11 years agoremove unused imports
Huon Wilson [Sun, 16 Jun 2013 02:20:12 +0000 (12:20 +1000)]
remove unused imports

11 years agoold_iter: rm the min/max free functions
Daniel Micay [Sat, 15 Jun 2013 23:24:20 +0000 (19:24 -0400)]
old_iter: rm the min/max free functions

11 years agofix test
Daniel Micay [Sat, 15 Jun 2013 22:20:43 +0000 (18:20 -0400)]
fix test

11 years agorm CopyableOrderedIter
Daniel Micay [Sat, 15 Jun 2013 07:16:10 +0000 (03:16 -0400)]
rm CopyableOrderedIter

replaced with OrdIterator

11 years agorm vec::uniq_len
Daniel Micay [Sat, 15 Jun 2013 06:20:06 +0000 (02:20 -0400)]
rm vec::uniq_len

11 years agostd: allow any sort of string to be Added with +.
Huon Wilson [Sat, 15 Jun 2013 13:17:53 +0000 (23:17 +1000)]
std: allow any sort of string to be Added with +.

11 years agostd: test-fixes, remove warnings, syntax highlighting for code examples.
Huon Wilson [Fri, 14 Jun 2013 03:43:05 +0000 (13:43 +1000)]
std: test-fixes, remove warnings, syntax highlighting for code examples.

11 years agostd: continue improving the comparison trait impls for str.
Huon Wilson [Fri, 14 Jun 2013 03:37:47 +0000 (13:37 +1000)]
std: continue improving the comparison trait impls for str.

This moves them all into the traits submodule, and delegates Ord
to the TotalOrd instance. It also deletes the stand-alone lt, gt,
ge and le functions.

11 years agostd: simplify the string comparison implementations, using iterators.
Huon Wilson [Thu, 13 Jun 2013 15:54:40 +0000 (01:54 +1000)]
std: simplify the string comparison implementations, using iterators.

11 years agostd: convert str::to_utf16 to a method.
Huon Wilson [Thu, 13 Jun 2013 15:44:15 +0000 (01:44 +1000)]
std: convert str::to_utf16 to a method.