Brian Anderson
9847428acf
mk: Fix pdf build
2013-04-30 17:45:08 -07:00
bors
7a857673ff
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 )
2013-04-30 17:39:36 -07:00
Brian Anderson
4a4646fd54
Merge remote-tracking branch 'brson/io'
...
Conflicts:
src/libcore/task/local_data_priv.rs
2013-04-30 17:01:27 -07:00
John Clements
ab1d8ead91
fixed pattern, moved test to compile-fail
2013-04-30 16:31:56 -07:00
John Clements
fc661079a4
fixed up syntax
2013-04-30 16:31:56 -07:00
John Clements
c75b7630bc
renamed issue-2185 to issue-3429
2013-04-30 16:31:55 -07:00
John Clements
89bb02adf9
typestate is not planned for upcoming versions of rust....
2013-04-30 16:31:55 -07:00
John Clements
d1921fb3ca
fixed this test case too
2013-04-30 16:31:55 -07:00
John Clements
3931ce448e
fixed the test case, hope it's still testing something
2013-04-30 16:31:55 -07:00
John Clements
527f7716b7
after syntax fixes, these tests appear to pass
2013-04-30 16:31:55 -07:00
John Clements
3a5361aec9
more commits on issue 2185
2013-04-30 16:31:55 -07:00
John Clements
178305ffec
fixed up issue-2185, but now it has a trait failure
2013-04-30 16:31:55 -07:00
John Clements
d6bb587c12
with syntax fixes, this test case now appears to pass
2013-04-30 16:31:55 -07:00
John Clements
cc4e0186ac
added test case for issue 5927
2013-04-30 16:31:55 -07:00
John Clements
add60bb081
Test now passes
2013-04-30 16:31:54 -07:00
John Clements
7e89a514a5
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...
2013-04-30 16:31:54 -07:00
John Clements
325263fe22
this test still doesn't pass, but at least it parses...
2013-04-30 16:31:54 -07:00
John Clements
dd310d6c3b
Got test cases to pass, after some major surgery
2013-04-30 16:31:45 -07:00
Tim Chevalier
4493cf49cd
Fix error messages harder
2013-04-30 16:17:19 -07:00
bors
9329bd669d
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.
2013-04-30 15:24:36 -07:00
Daniel Micay
0b377e53a1
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 *.
2013-04-30 17:09:11 -04:00
Niko Matsakis
f236b850c0
remove some unused mut decls
2013-04-30 16:35:01 -04:00
Niko Matsakis
dc21daeeb8
borrowck: fix critical bug prevent us from ever using write guards :)
2013-04-30 16:34:22 -04:00
bors
9d966aef06
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 .
2013-04-30 13:30:39 -07:00
bors
9b54fbd40f
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.
2013-04-30 12:12:37 -07:00
Jed Davis
4701716b56
Revert "doc: XFAIL mysterious failure on bots"
...
This reverts commit 2c6dae081b
.
2013-04-30 12:07:10 -07:00
Jed Davis
41d06dbd28
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.
2013-04-30 12:05:06 -07:00
Jed Davis
8408012ca4
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 .
2013-04-30 11:36:22 -07:00
Seo Sanghyeon
97109aa51b
Remove mach_sty
2013-05-01 03:27:14 +09:00
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