Daniel Micay
a6eaa3bbb4
iter: add max and min functions
2013-04-30 14:14:55 -04:00
Niko Matsakis
418f991118
allover: numerous unused muts etc
2013-04-30 14:10:21 -04:00
Niko Matsakis
70b9ad1748
rustc: work around issue with default-method-simple, fix some rebase
...
errors
2013-04-30 14:09:14 -04:00
Niko Matsakis
545d51c160
rustc: remove modes
2013-04-30 14:08:18 -04:00
Niko Matsakis
7a0c1ea560
correct used_mut annotations for args, inherited case
2013-04-30 14:07:52 -04:00
Niko Matsakis
aa48a170d5
dataflow: fix flow of information through pattern variants
2013-04-30 14:07:26 -04:00
John Clements
9455eaf77b
changed to impl trait for type stx
2013-04-30 10:12:05 -07:00
John Clements
77da055345
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.
2013-04-30 10:12:04 -07:00
John Clements
78942a2d16
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.
2013-04-30 10:12:04 -07:00
John Clements
5d8db6fd37
remove (non-parsing) test related to impl d for d feature
2013-04-30 10:12:03 -07:00
John Clements
229ebf0bca
deleted two tests intended to test RUST_CC_ZEAL, an apparently defunct flag for the cycle collector
2013-04-30 10:12:03 -07:00
Daniel Micay
6f18bb550e
iter: add a find function
2013-04-30 13:07:14 -04:00
Daniel Micay
7fed480073
char: fix unused import warning
2013-04-30 13:01:12 -04:00
Niko Matsakis
a896440ca1
new borrow checker (mass squash)
2013-04-30 06:59:32 -04:00
Niko Matsakis
b5a7e8b353
desnapshot
2013-04-30 06:46:02 -04:00
Niko Matsakis
202b8dcdc4
adapt to snapshot
2013-04-30 06:43:02 -04:00
Sangeun Kim
84e97d5596
I modified the doc of from_elem, from_fn, I think it returns an owned vector
2013-04-30 18:39:16 +09:00
bors
c081ffbd1e
auto merge of #6121 : luqmana/rust/newtype-cc, r=graydon
...
#6086
2013-04-30 02:21:37 -07:00
James Miller
2deefbe847
Change flags to -Z print-link-args and --link-args
2013-04-30 20:05:16 +12:00
bors
84e22f2b8e
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`.
2013-04-29 22:30:36 -07:00
bors
48f50ac800
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.
2013-04-29 20:48:37 -07:00
Tim Chevalier
849f8142a2
rustc / test: Fix error message
2013-04-29 20:46:54 -07:00
Luqman Aden
c2b8f98917
librustc: Fix drop finalizer not running for newtype structs.
2013-04-29 19:48:49 -07:00
bors
868b7c153c
auto merge of #6073 : huonw/rust/core-rust-isaac, r=pcwalton
...
This replaces the wrapper around the runtime RNG with a pure Rust implementation of the same algorithm. This is much faster (up to 5x), and is hopefully safer.
There is still (a little) room for optimisation: testing by summing 100,000,000 random `u32`s indicates this is about ~~40-50%~~ 10% slower than the pure C implementation (running as standalone executable, not in the runtime).
(Only 6d50d55 is part of this PR, the first two are from #6058 , but are required for the rt rng to be correct to compare against in the tests.)
2013-04-29 18:24:37 -07:00
Luqman Aden
10f290ef68
Add test for cross crate newtype struct in match pattern.
2013-04-29 17:35:36 -07:00
Luqman Aden
b50aa827a0
librustc: Fix pattern matching on cross crate newtype structs.
2013-04-29 17:35:36 -07:00
Brian Anderson
9ddcf1cdd3
test: Remove run-pass/too-much-recursion.rs
...
I don't understand how this is still passing on the bots. This condition
should trigger an abort now.
2013-04-29 17:11:22 -07:00
Brian Anderson
98f5c6d5b6
rustc: Only accept main functions at the crate level. #4433
2013-04-29 17:10:50 -07:00
Brian Anderson
6818e241b4
core: Turn off the local heap in newsched in stage0 to work around windows bustage
...
core won't compile in stage0 without.
2013-04-29 16:44:21 -07:00
Huon Wilson
d4b934bdce
core: add some inlining hints to methods/fns in rand.
2013-04-30 08:41:06 +10:00
Huon Wilson
30266a788f
core: a pure Rust implementation of the ISAAC RNG.
...
This replaces the wrapper around the runtime RNG with a pure Rust
implementation of the same algorithm. This is faster (up to 5x), and
is hopefully safer.
There is still much room for optimisation: testing by summing 100,000,000
random `u32`s indicates this is about 40-50% slower than the pure C
implementation (running as standalone executable, not in the runtime).
2013-04-30 08:40:05 +10:00
Brian Anderson
be8dc615c5
rustc: Move code for discovering the crate entry point into its own pass
...
It doesn't have anything to do with resolve and the logic will likely get
more involved in the future, after #4433
2013-04-29 14:56:05 -07:00
Tim Chevalier
d8024e2c3b
rustc: Change At to Managed and Uniq to Owned
2013-04-29 14:38:39 -07:00
bors
f1ddb8d5cc
auto merge of #6080 : pcwalton/rust/demode-everything, r=pcwalton
...
r? @brson
2013-04-29 14:33:37 -07:00
Patrick Walton
78f33437b6
libstd: Fix merge fallout.
2013-04-29 14:30:57 -07:00
Patrick Walton
2c6dae081b
doc: XFAIL mysterious failure on bots
2013-04-29 14:30:57 -07:00
Patrick Walton
a9da34bf6e
librustc: Fix merge fallout.
2013-04-29 14:30:57 -07:00
Patrick Walton
39693e7b61
test: Fix more tests.
2013-04-29 14:30:57 -07:00
Patrick Walton
37abf4bad0
librustc: Forbid type implementations on typedefs.
2013-04-29 14:30:57 -07:00
Patrick Walton
670ab8ac36
librustc: Change labels to use the lifetime notation '
.
2013-04-29 14:30:57 -07:00
Patrick Walton
876483dcf4
test: Fix tests.
2013-04-29 14:30:56 -07:00
Patrick Walton
f30f54e9d0
librustc: Remove the concept of modes from the compiler.
...
This commit does not remove `ty::arg`, although that should be
possible to do now.
2013-04-29 14:30:55 -07:00
Patrick Walton
a12a3db5b4
librustc: Make &fn
by-copy by default and remove the mode from frame_address
.
2013-04-29 14:30:55 -07:00
Patrick Walton
17723d18de
test: Remove #[legacy_modes] from the test suite.
2013-04-29 14:30:55 -07:00
Patrick Walton
a214fee0ba
libfuzzer: De-mode the fuzzer.
2013-04-29 14:30:54 -07:00
Patrick Walton
0780b2830f
librustc: Remove the legacy mode in the type visitor intrinsic.
2013-04-29 14:30:53 -07:00
Patrick Walton
c6a9e28842
librustc: Rename reinterpret_cast
to transmute_copy
and remove the intrinsic
2013-04-29 14:30:53 -07:00
Patrick Walton
b6277f8140
librustc: Implement reinterpret_cast
in terms of transmute
.
2013-04-29 14:30:53 -07:00
Patrick Walton
b0522a497c
librustc: Remove ptr::addr_of
.
2013-04-29 14:30:53 -07:00
Tim Chevalier
58791c2fd8
Revert "libcore: remove unnecessary deref"
...
This reverts commit 9860fe10a1
.
2013-04-29 14:30:52 -07:00