]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoauto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums, r=catamorphism...
bors [Thu, 2 May 2013 23:03:37 +0000 (16:03 -0700)]
auto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums, r=catamorphism,graydon

I don't know how one would write a separate test for this sort of thing. Building the compiler, and `make check` worked, which should mean I didn't screw anything.

11 years agoauto merge of #6197 : graydon/rust/re-xfail, r=graydon
bors [Thu, 2 May 2013 21:15:37 +0000 (14:15 -0700)]
auto merge of #6197 : graydon/rust/re-xfail, r=graydon

These were accidentally un-xfail'ed since they pass on x64. They don't yet on x86.

11 years agore-xfail some tests that fail on x86
Graydon Hoare [Thu, 2 May 2013 21:12:55 +0000 (14:12 -0700)]
re-xfail some tests that fail on x86

11 years agoauto merge of #6193 : youknowone/rust/static-string, r=sanxiyn
bors [Thu, 2 May 2013 19:36:36 +0000 (12:36 -0700)]
auto merge of #6193 : youknowone/rust/static-string, r=sanxiyn

11 years agoauto merge of #6184 : kud1ing/rust/master, r=sanxiyn
bors [Thu, 2 May 2013 18:30:41 +0000 (11:30 -0700)]
auto merge of #6184 : kud1ing/rust/master, r=sanxiyn

11 years agoauto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton
bors [Thu, 2 May 2013 17:21:40 +0000 (10:21 -0700)]
auto merge of #6125 : luqmana/rust/newtype-drop, r=pcwalton

#6090

r? @brson

11 years agoUse static strings
Jeong YunWon [Thu, 2 May 2013 16:28:53 +0000 (01:28 +0900)]
Use static strings

11 years agoauto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis
bors [Thu, 2 May 2013 16:18:37 +0000 (09:18 -0700)]
auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis

This adds #[inline] to many very common string routines (e.g. `len`).

It also rewrites `repeat` to not use `+=` and make it O(n) rather than O(n^2), and also concat/connect(_slices) to reduce the overhead of reallocations, and constantly `set_len`ing (etc) in `push_str`. (The added complexity might not be worth the 20% speedup though.)

11 years agoauto merge of #6178 : erickt/rust/remove-drop, r=graydon
bors [Thu, 2 May 2013 15:18:38 +0000 (08:18 -0700)]
auto merge of #6178 : erickt/rust/remove-drop, r=graydon

This patch removes ty::LegacyDtor, which is no longer used.

11 years agoauto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger
bors [Thu, 2 May 2013 14:15:39 +0000 (07:15 -0700)]
auto merge of #6176 : thestinger/rust/libuv_optimize, r=thestinger

Closes #6142

11 years agoauto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger
bors [Thu, 2 May 2013 13:15:37 +0000 (06:15 -0700)]
auto merge of #6177 : gifnksm/rust/iter-chain, r=thestinger

`T: Iterator<A>` and `U: Iterator<A>` should be able to `chain` whether `T` and `U` are same or not.

11 years agoThe following code was generated by "src/etc/unicode.py"
kud1ing [Thu, 2 May 2013 10:38:39 +0000 (13:38 +0300)]
The following code was generated by "src/etc/unicode.py"

11 years agoExplain that the source code was generated by this script
kud1ing [Thu, 2 May 2013 10:37:57 +0000 (13:37 +0300)]
Explain that the source code was generated by this script

11 years agolibcore: optimize string joining routines.
Huon Wilson [Thu, 2 May 2013 09:24:41 +0000 (19:24 +1000)]
libcore: optimize string joining routines.

This makes concat/connect/connect_slices about 20% faster, and takes
`repeat` from O(n^2) to O(n), and lowers the constant factor.

11 years agocore: inlining on common functions
Huon Wilson [Thu, 2 May 2013 07:49:11 +0000 (17:49 +1000)]
core: inlining on common functions

11 years agoauto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneou...
bors [Thu, 2 May 2013 07:15:46 +0000 (00:15 -0700)]
auto merge of #6111 : pnkfelix/rust/issue4391-rustc-should-not-silently-skip-erroneous-tests, r=pnkfelix

...e.

Fixes #4391.

11 years agoMore cases of [cfg(test)] instead of [test].
Felix S. Klock II [Thu, 2 May 2013 06:50:19 +0000 (08:50 +0200)]
More cases of [cfg(test)] instead of [test].

11 years agoMore cases of [cfg(test)] instead of [test].
Felix S. Klock II [Wed, 1 May 2013 23:32:37 +0000 (01:32 +0200)]
More cases of [cfg(test)] instead of [test].

11 years agoLets see if changing `span_fatal` to `span_err` gets me further through make check.
Felix S. Klock II [Wed, 1 May 2013 23:31:58 +0000 (01:31 +0200)]
Lets see if changing `span_fatal` to `span_err` gets me further through make check.

11 years agomod items need to be marked with `cfg(test)` not `test`.
Felix S. Klock II [Tue, 30 Apr 2013 12:36:18 +0000 (14:36 +0200)]
mod items need to be marked with `cfg(test)` not `test`.

11 years agomod items need to be marked with `cfg(test)` not `test`.
Felix S. Klock II [Tue, 30 Apr 2013 11:02:29 +0000 (13:02 +0200)]
mod items need to be marked with `cfg(test)` not `test`.

11 years agoIssue 4391: rustc should not silently skip tests with erroneous signature.
Felix S. Klock II [Mon, 29 Apr 2013 14:25:40 +0000 (16:25 +0200)]
Issue 4391: rustc should not silently skip tests with erroneous signature.

11 years agoauto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
bors [Thu, 2 May 2013 06:09:36 +0000 (23:09 -0700)]
auto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn

This has happened to two people trying to get Rust working on other platforms. Since it won't compile either way, make a nicer message for it (which will also point them straight to the correct file).

11 years agoauto merge of #6174 : sanxiyn/rust/static-string, r=brson
bors [Thu, 2 May 2013 05:06:37 +0000 (22:06 -0700)]
auto merge of #6174 : sanxiyn/rust/static-string, r=brson

11 years agoauto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson
bors [Thu, 2 May 2013 04:00:39 +0000 (21:00 -0700)]
auto merge of #6151 : bjz/rust/local-variable-cleanup, r=brson

I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.

11 years agorustc: remove ty::LegacyDtor
Erick Tryzelaar [Thu, 2 May 2013 03:30:05 +0000 (20:30 -0700)]
rustc: remove ty::LegacyDtor

11 years agoRemove 'Local Variable' comments
Brendan Zabarauskas [Wed, 1 May 2013 10:52:09 +0000 (20:52 +1000)]
Remove 'Local Variable' comments

11 years agoauto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
bors [Thu, 2 May 2013 02:54:36 +0000 (19:54 -0700)]
auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi

I think whether vector element is mutable is decided by whether vector reference is mutable.

11 years agopass along CFLAGS/LINK_FLAGS to libuv
Daniel Micay [Thu, 2 May 2013 01:54:02 +0000 (21:54 -0400)]
pass along CFLAGS/LINK_FLAGS to libuv

Closes #6142

11 years agolibcore: Make `ChainIterator` take two different-typed `Iterator`s.
gifnksm [Thu, 2 May 2013 02:08:33 +0000 (11:08 +0900)]
libcore: Make `ChainIterator` take two different-typed `Iterator`s.

11 years agoAdd error if RED_ZONE_SIZE doesn't get defined
James Miller [Thu, 2 May 2013 02:04:43 +0000 (14:04 +1200)]
Add error if RED_ZONE_SIZE doesn't get defined

11 years agoauto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon
bors [Thu, 2 May 2013 01:45:39 +0000 (18:45 -0700)]
auto merge of #6127 : gifnksm/rust/impl-clone-for-bigint, r=graydon

implement `Clone` using `deriving(Clone)`.

11 years agoUse static strings
Seo Sanghyeon [Tue, 30 Apr 2013 16:47:52 +0000 (01:47 +0900)]
Use static strings

11 years agoTake string slices
Seo Sanghyeon [Tue, 30 Apr 2013 15:53:20 +0000 (00:53 +0900)]
Take string slices

11 years agoauto merge of #6162 : graydon/rust/random-retry, r=graydon
bors [Thu, 2 May 2013 00:45:37 +0000 (17:45 -0700)]
auto merge of #6162 : graydon/rust/random-retry, r=graydon

Sample from the normal and exponential distributions using the Ziggurat
algorithm.

11 years agoauto merge of #6161 : graydon/rust/glob-retry, r=graydon
bors [Wed, 1 May 2013 23:51:45 +0000 (16:51 -0700)]
auto merge of #6161 : graydon/rust/glob-retry, r=graydon

This is a retry of pull #5832

11 years agolibcore: add N(0,1) and Exp(1) distributions to core::rand.
Huon Wilson [Sun, 28 Apr 2013 14:18:53 +0000 (00:18 +1000)]
libcore: add N(0,1) and Exp(1) distributions to core::rand.

Sample from the normal and exponential distributions using the Ziggurat
algorithm.

11 years agoglob_t should be public on all platforms
Jesse Luehrs [Wed, 1 May 2013 03:26:43 +0000 (22:26 -0500)]
glob_t should be public on all platforms

11 years agoadd a higher level glob() function to os
Jesse Luehrs [Wed, 10 Apr 2013 05:33:21 +0000 (00:33 -0500)]
add a higher level glob() function to os

this could probably use expansion - it just uses all of the default
options, which is usually what we want, but not always. maybe add a
separate function that takes more options?

11 years agolibc bindings for glob.h
Jesse Luehrs [Wed, 10 Apr 2013 03:18:23 +0000 (22:18 -0500)]
libc bindings for glob.h

only tested on linux/x86_64, but i got the values for other platforms
from their system header files.

no bindings for win32, because win32 doesn't include glob.h.

also, glob() takes a callback for error handling, but i'm just making
this a *c_void for now, since i don't know how to represent c calling
back into rust (if that's even currently possible).

11 years agoAdd trait object field types to back/abi.rs, and use them
Daniel Ralston [Wed, 1 May 2013 08:59:36 +0000 (01:59 -0700)]
Add trait object field types to back/abi.rs, and use them

I've added trt_field_vtable, trt_field_box, and trt_field_tydesc, and
inserted them in place of the "magic numbers" used to access trait
object fields through GEPi().

11 years agolibstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()`
gifnksm [Tue, 30 Apr 2013 11:01:26 +0000 (20:01 +0900)]
libstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()`

11 years agocompiletest: stop ignoring all tests.
Graydon Hoare [Wed, 1 May 2013 21:58:21 +0000 (14:58 -0700)]
compiletest: stop ignoring all tests.

11 years agoauto merge of #6148 : erickt/rust/remove-drop, r=pcwalton
bors [Wed, 1 May 2013 16:18:59 +0000 (09:18 -0700)]
auto merge of #6148 : erickt/rust/remove-drop, r=pcwalton

The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work.

As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.

11 years agopipes: use finally to fix pipes::try_recv
Erick Tryzelaar [Wed, 1 May 2013 14:49:10 +0000 (07:49 -0700)]
pipes: use finally to fix pipes::try_recv

11 years agorustdoc: Remove a now invalid test
Erick Tryzelaar [Wed, 1 May 2013 06:30:04 +0000 (23:30 -0700)]
rustdoc: Remove a now invalid test

11 years agoremove some warnings
Erick Tryzelaar [Wed, 1 May 2013 05:47:09 +0000 (22:47 -0700)]
remove some warnings

11 years agosyntax: remove parse::token::{dtor,literally_dtor}
Erick Tryzelaar [Wed, 1 May 2013 05:42:36 +0000 (22:42 -0700)]
syntax: remove parse::token::{dtor,literally_dtor}

11 years agoallow parsing attributes on struct fields
Erick Tryzelaar [Wed, 1 May 2013 03:20:08 +0000 (20:20 -0700)]
allow parsing attributes on struct fields

11 years agorustc: remove the rest of drop
Erick Tryzelaar [Wed, 1 May 2013 04:00:45 +0000 (21:00 -0700)]
rustc: remove the rest of drop

Removes:

ast::struct_def::dtor
syntax::ast::ii_dtor
syntax::visit::fk_dtor
syntax::ast_map::node_dtor
syntax:struct_dtor

11 years agosyntax: remove parsing destructors
Erick Tryzelaar [Wed, 1 May 2013 04:00:30 +0000 (21:00 -0700)]
syntax: remove parsing destructors

11 years agocore: Remove use of deprecated `drop`
Erick Tryzelaar [Wed, 1 May 2013 01:03:09 +0000 (18:03 -0700)]
core: Remove use of deprecated `drop`

11 years agoauto merge of #6147 : bjz/rust/numeric-traits, r=brson
bors [Wed, 1 May 2013 08:51:35 +0000 (01:51 -0700)]
auto merge of #6147 : bjz/rust/numeric-traits, r=brson

After much discussion on IRC and #4819, we have decided to revert to the old naming of the `/` operator. This does not change its behavior. In making this change, we also have had to rename some of the methods in the `Integer` trait. Here is a list of the methods that have changed:

- `Quot::quot` -> `Div::div`
- `Rem::rem` - stays the same
- `Integer::quot_rem` -> `Integer::div_rem`
- `Integer::div` -> `Integer::div_floor`
- `Integer::modulo` -> `Integer::mod_floor`
- `Integer::div_mod` -> `Integer::div_mod_floor`

11 years agoauto merge of #6144 : catamorphism/rust/mkdir_recursive-breakage, r=thestinger
bors [Wed, 1 May 2013 07:57:35 +0000 (00:57 -0700)]
auto merge of #6144 : catamorphism/rust/mkdir_recursive-breakage, r=thestinger

r? @brson or @thestinger : Added a change_dir_locked function to os, and use it in the
mkdir_recursive tests so that the tests don't clobber each other's
directory changes.

11 years agoauto merge of #6139 : thestinger/rust/tmp, r=graydon
bors [Wed, 1 May 2013 06:21:36 +0000 (23:21 -0700)]
auto merge of #6139 : thestinger/rust/tmp, r=graydon

The `.tmp` files were missed before. I don't think there's a need to use
*.ext instead of just *.

11 years agoRevert rename of Div to Quot
Brendan Zabarauskas [Wed, 1 May 2013 05:40:05 +0000 (15:40 +1000)]
Revert rename of Div to Quot

11 years agoauto merge of #6131 : thestinger/rust/new_iter, r=graydon
bors [Wed, 1 May 2013 05:24:35 +0000 (22:24 -0700)]
auto merge of #6131 : thestinger/rust/new_iter, r=graydon

11 years agoauto merge of #6115 : jbclements/rust/test-case-fixes, r=jbclements
bors [Wed, 1 May 2013 04:12:36 +0000 (21:12 -0700)]
auto merge of #6115 : jbclements/rust/test-case-fixes, r=jbclements

In developing the grammar a few weeks ago, I fixed up a bunch of test cases that had rotted to the point that they didn't parse.

11 years agoauto merge of #6113 : brson/rust/task-drop, r=graydon
bors [Wed, 1 May 2013 03:09:36 +0000 (20:09 -0700)]
auto merge of #6113 : brson/rust/task-drop, r=graydon

11 years agoauto merge of #6105 : Aatch/rust/linker-improv, r=pcwalton
bors [Wed, 1 May 2013 01:36:45 +0000 (18:36 -0700)]
auto merge of #6105 : Aatch/rust/linker-improv, r=pcwalton

Adds two extra flags: `--linker` which takes extra flags to pass to the linker, can be used multiple times and `--print-link-args` which prints out linker arguments. Currently `--print-link-args` needs execution to get past translation to get the `LinkMeta` data.

I haven't done tests or updated any extra documentation yet, so this pull request is currently here for review.

11 years agocore/std: Fix race condition in os::mkdir_recursive tests
Tim Chevalier [Wed, 1 May 2013 00:58:24 +0000 (17:58 -0700)]
core/std: Fix race condition in os::mkdir_recursive tests

Added a change_dir_locked function to os, and use it in the
mkdir_recursive tests so that the tests don't clobber each other's
directory changes.

11 years agoauto merge of #6103 : catamorphism/rust/nonfatal-errors, r=catamorphism
bors [Wed, 1 May 2013 00:39:36 +0000 (17:39 -0700)]
auto merge of #6103 : catamorphism/rust/nonfatal-errors, r=catamorphism

r? @nikomatsakis typeck::check::_match wasn't suppressing derived errors properly.
Fixed it. (This will fix #5100)

11 years agofixed pattern, moved test to compile-fail
John Clements [Tue, 30 Apr 2013 18:58:55 +0000 (11:58 -0700)]
fixed pattern, moved test to compile-fail

11 years agofixed up syntax
John Clements [Fri, 19 Apr 2013 00:28:22 +0000 (17:28 -0700)]
fixed up syntax

11 years agorenamed issue-2185 to issue-3429
John Clements [Tue, 30 Apr 2013 17:40:08 +0000 (10:40 -0700)]
renamed issue-2185 to issue-3429

11 years agotypestate is not planned for upcoming versions of rust....
John Clements [Fri, 19 Apr 2013 00:20:28 +0000 (17:20 -0700)]
typestate is not planned for upcoming versions of rust....

11 years agofixed this test case too
John Clements [Fri, 19 Apr 2013 00:10:26 +0000 (17:10 -0700)]
fixed this test case too

11 years agofixed the test case, hope it's still testing something
John Clements [Fri, 19 Apr 2013 00:08:23 +0000 (17:08 -0700)]
fixed the test case, hope it's still testing something

11 years agoafter syntax fixes, these tests appear to pass
John Clements [Thu, 18 Apr 2013 23:55:48 +0000 (16:55 -0700)]
after syntax fixes, these tests appear to pass

11 years agomore commits on issue 2185
John Clements [Tue, 30 Apr 2013 17:39:20 +0000 (10:39 -0700)]
more commits on issue 2185

11 years agofixed up issue-2185, but now it has a trait failure
John Clements [Thu, 18 Apr 2013 23:48:33 +0000 (16:48 -0700)]
fixed up issue-2185, but now it has a trait failure

11 years agowith syntax fixes, this test case now appears to pass
John Clements [Thu, 18 Apr 2013 23:44:36 +0000 (16:44 -0700)]
with syntax fixes, this test case now appears to pass

11 years agoadded test case for issue 5927
John Clements [Thu, 18 Apr 2013 22:49:28 +0000 (15:49 -0700)]
added test case for issue 5927

11 years agoTest now passes
John Clements [Thu, 18 Apr 2013 22:20:36 +0000 (15:20 -0700)]
Test now passes

11 years agoThis test case now parses
John Clements [Thu, 18 Apr 2013 22:13:24 +0000 (15:13 -0700)]
This test case now parses

I've done a slapdash job of fixing up the syntax; it didn't pass before,
and it doesn't pass now, but at least it parses...

11 years agothis test still doesn't pass, but at least it parses...
John Clements [Thu, 18 Apr 2013 22:05:39 +0000 (15:05 -0700)]
this test still doesn't pass, but at least it parses...

11 years agoGot test cases to pass, after some major surgery
John Clements [Thu, 18 Apr 2013 21:48:59 +0000 (14:48 -0700)]
Got test cases to pass, after some major surgery

11 years agoFix error messages harder
Tim Chevalier [Tue, 30 Apr 2013 23:17:19 +0000 (16:17 -0700)]
Fix error messages harder

11 years agoauto merge of #6136 : jld/rust/simplifycfg-unrevert, r=thestinger
bors [Tue, 30 Apr 2013 22:24:36 +0000 (15:24 -0700)]
auto merge of #6136 : jld/rust/simplifycfg-unrevert, r=thestinger

Also add the clearly marked test case that should have been there all along, and un-xfail the not-so-obvious doc test that was affected.

11 years agoclear *everything* from the tmp directory
Daniel Micay [Tue, 30 Apr 2013 21:09:11 +0000 (17:09 -0400)]
clear *everything* from the tmp directory

The .tmp files were missed before. I don't think there's a need to use
*.ext instead of just *.

11 years agoauto merge of #6134 : jld/rust/issue-6117, r=catamorphism
bors [Tue, 30 Apr 2013 20:30:39 +0000 (13:30 -0700)]
auto merge of #6134 : jld/rust/issue-6117, r=catamorphism

Cases like `Either<@int,()>` have a null case with at most one value but
a nonzero number of fields; if we misreport this, then bad things can
happen inside of, for example, pattern matching.

Closes #6117.

11 years agoauto merge of #6118 : brson/rust/too-much-recursion, r=thestinger
bors [Tue, 30 Apr 2013 19:12:37 +0000 (12:12 -0700)]
auto merge of #6118 : brson/rust/too-much-recursion, r=thestinger

I don't understand how this is still passing on the bots. This condition
should trigger an abort now.

11 years agoRevert "doc: XFAIL mysterious failure on bots"
Jed Davis [Tue, 30 Apr 2013 19:07:10 +0000 (12:07 -0700)]
Revert "doc: XFAIL mysterious failure on bots"

This reverts commit 2c6dae081b72d33a2c51b5f46436e6350bb3682f.

11 years agoReverse accidental src/llvm reversion in 876483dcf, and add test.
Jed Davis [Tue, 30 Apr 2013 19:05:06 +0000 (12:05 -0700)]
Reverse accidental src/llvm reversion in 876483dcf, and add test.

The test is reduced from a doc test, but making it separate ensures that
(1) unrelated changes to the docs won't leave this case uncovered, and
(2) the nature of any future failures will be more obvious to whoever
sees the tree on fire as a result.

11 years agoThe null case of a nullable-poiner enum might not be nullary.
Jed Davis [Tue, 30 Apr 2013 18:36:22 +0000 (11:36 -0700)]
The null case of a nullable-poiner enum might not be nullary.

Cases like `Either<@int,()>` have a null case with at most one value but
a nonzero number of fields; if we misreport this, then bad things can
happen inside of, for example, pattern matching.

Closes #6117.

11 years agoiter: add max and min functions
Daniel Micay [Tue, 30 Apr 2013 17:28:20 +0000 (13:28 -0400)]
iter: add max and min functions

11 years agochanged to impl trait for type stx
John Clements [Thu, 18 Apr 2013 20:58:15 +0000 (13:58 -0700)]
changed to impl trait for type stx

11 years agoThis test case is obsolete for two reasons
John Clements [Thu, 18 Apr 2013 20:44:49 +0000 (13:44 -0700)]
This test case is obsolete for two reasons

First, it refers to a feature (trait bounds on type parameters) that's
apparently no longer in the language. Second, if I understand the issue
correctly, it should never have been a "run-pass" test because it was
supposed to fail.

11 years agothis issue is a dup of another one that has a correct test case
John Clements [Thu, 18 Apr 2013 20:22:59 +0000 (13:22 -0700)]
this issue is a dup of another one that has a correct test case

this test case has rotted wrt modern syntax. fortunately, this issue
was a dup of another one, and that one still ICEs.

11 years agoremove (non-parsing) test related to impl d for d feature
John Clements [Thu, 18 Apr 2013 19:25:44 +0000 (12:25 -0700)]
remove (non-parsing) test related to impl d for d feature

11 years agodeleted two tests intended to test RUST_CC_ZEAL, an apparently defunct flag for the...
John Clements [Thu, 18 Apr 2013 18:40:44 +0000 (11:40 -0700)]
deleted two tests intended to test RUST_CC_ZEAL, an apparently defunct flag for the cycle collector

11 years agoiter: add a find function
Daniel Micay [Tue, 30 Apr 2013 17:01:20 +0000 (13:01 -0400)]
iter: add a find function

11 years agochar: fix unused import warning
Daniel Micay [Tue, 30 Apr 2013 17:01:12 +0000 (13:01 -0400)]
char: fix unused import warning

11 years agoI modified the doc of from_elem, from_fn, I think it returns an owned vector
Sangeun Kim [Tue, 30 Apr 2013 09:39:16 +0000 (18:39 +0900)]
I modified the doc of from_elem, from_fn, I think it returns an owned vector

11 years agoauto merge of #6121 : luqmana/rust/newtype-cc, r=graydon
bors [Tue, 30 Apr 2013 09:21:37 +0000 (02:21 -0700)]
auto merge of #6121 : luqmana/rust/newtype-cc, r=graydon

#6086

11 years agoChange flags to -Z print-link-args and --link-args
James Miller [Tue, 30 Apr 2013 08:05:16 +0000 (20:05 +1200)]
Change flags to -Z print-link-args and --link-args

11 years agoauto merge of #6108 : gifnksm/rust/bigint-shift-bug, r=brson
bors [Tue, 30 Apr 2013 05:30:36 +0000 (22:30 -0700)]
auto merge of #6108 : gifnksm/rust/bigint-shift-bug, r=brson

`std::bigint` contains the following code.
```rust
borrow = *elem << (uint::bits - n_bits);
```
The code above contains a bug that the value of the right operand of the shift operator exceeds the size of the left operand,
because sizeof(*elem) == 32, and 0 <= n_bits < 32 in 64bit architecture.

If `--opt-level` option is not given to rustc, the code above runs as if the right operand is `(uint::bits - n_bits) % 32`,
but if --opt-level is given, `borrow` is always zero.

I wonder why this bug is not catched in the libstd's testsuite (I try the `rustc --test --opt-level=2 bigint.rs` before fixing the bug,
but the unittest passes normally.)

This pull request also removes the implicit vector copies in `bigint.rs`.

11 years agoauto merge of #6107 : catamorphism/rust/mkdir_recursive, r=brson
bors [Tue, 30 Apr 2013 03:48:37 +0000 (20:48 -0700)]
auto merge of #6107 : catamorphism/rust/mkdir_recursive, r=brson

r? @brson This hopefully addresses your concerns about the termination condition, and adds more tests. With a bonus documentation commit.

11 years agorustc / test: Fix error message
Tim Chevalier [Tue, 30 Apr 2013 03:46:54 +0000 (20:46 -0700)]
rustc / test: Fix error message

11 years agolibrustc: Fix drop finalizer not running for newtype structs.
Luqman Aden [Tue, 30 Apr 2013 02:48:28 +0000 (19:48 -0700)]
librustc: Fix drop finalizer not running for newtype structs.