Barosl Lee
a0155444cf
Permit node types to be missing if type errors occurred previously
...
If the type of a node cannot be determined due to a previous type error,
a "no type for node" ICE occurs. This commit makes it return ty_err
instead in such a case.
Fixes #20401 .
Fixes #20506 .
Fixes #20614 .
Fixes #20752 .
Fixes #20829 .
Fixes #20846 .
Fixes #20885 .
Fixes #20886 .
2015-01-11 19:42:18 +09:00
bors
431105a70a
Merge pull request #20887 from TeXitoi/improve-shootout-binarytrees
...
Improvement of shootout-binarytrees.rs
Reviewed-by: alexcrichton
2015-01-10 23:40:20 +00:00
Guillaume Pinot
629bcdd873
Improvement of shootout-binarytrees.rs
...
Part of #18085
Instead of using an Enum, we use a struct with Option<&Tree> as leaves. It allow
to limit a lot of allocation.
before:
```
texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees-orig 20
stretch tree of depth 21 check: -1
2097152 trees of depth 4 check: -2097152
524288 trees of depth 6 check: -524288
131072 trees of depth 8 check: -131072
32768 trees of depth 10 check: -32768
8192 trees of depth 12 check: -8192
2048 trees of depth 14 check: -2048
512 trees of depth 16 check: -512
128 trees of depth 18 check: -128
32 trees of depth 20 check: -32
long lived tree of depth 20 check: -1
real 0m3.860s
user 0m11.032s
sys 0m3.572s
```
after:
```
texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees 20
stretch tree of depth 21 check: -1
2097152 trees of depth 4 check: -2097152
524288 trees of depth 6 check: -524288
131072 trees of depth 8 check: -131072
32768 trees of depth 10 check: -32768
8192 trees of depth 12 check: -8192
2048 trees of depth 14 check: -2048
512 trees of depth 16 check: -512
128 trees of depth 18 check: -128
32 trees of depth 20 check: -32
long lived tree of depth 20 check: -1
real 0m2.824s
user 0m9.224s
sys 0m1.428s
```
2015-01-10 20:19:54 +01:00
bors
099b411e08
auto merge of #20869 : nikomatsakis/rust/issue-18875, r=huonw
...
Feature-gate `<>` syntax used with `Fn`. Fixes #18875 .
r? @huonw
2015-01-10 16:20:04 +00:00
bors
ac0c2fb5f1
Merge pull request #20808 from Manishearth/span_fix
...
Fix checking of command line expansion spans
Reviewed-by: alexcrichton
2015-01-10 14:15:09 +00:00
bors
c0ca57a6fb
Merge pull request #20771 from Kimundi/vec-macro-repeat
...
Enabled the `vec![]` macro to use the `[a; b]` repeat syntax.
Reviewed-by: alexcrichton
2015-01-10 14:15:09 +00:00
Niko Matsakis
152d623877
Feature-gate <> syntax used with Fn. Fixes #18875 .
2015-01-10 09:12:25 -05:00
bors
d36dc15952
auto merge of #20794 : sfackler/rust/trailing-attrs, r=alexcrichton
...
Closes #20711
2015-01-10 08:00:09 +00:00
Alex Crichton
9cc847d8c3
syntax: Add #[allow(unstable)] to --test expansion
...
This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.
Closes #20823
2015-01-09 13:26:21 -08:00
bors
b5571ed71a
Merge pull request #20800 from jroesch/add-regression-for-issue-20414
...
Add test for issue #20414
Reviewed-by: alexcrichton
2015-01-09 17:35:11 +00:00
Manish Goregaokar
8c6bd81196
Revert "Ignore extra error from test for now"
...
This reverts commit 6342aa62ef .
2015-01-09 18:27:23 +05:30
Jared Roesch
2d2159f5b0
Add test for issue #20414
2015-01-08 23:35:17 -08:00
Steven Fackler
cbd962ebb5
Forbid trailing attributes in impl blocks
...
Closes #20711
2015-01-08 21:36:30 -08:00
bors
e72ad98e46
Merge pull request #20718 from tshepang/bench-fix-some-warnings
...
bench: fix a few compiler warnings
Reviewed-by: alexcrichton
2015-01-09 01:19:53 +00:00
Marvin Löbel
c163effc2b
Enabled the vec![] macro to use the [a; b] repeat syntax.
...
Closes #15587
2015-01-08 21:53:04 +01:00
bors
00b112c45a
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
2015-01-08 18:40:04 +00:00
Alex Crichton
483fca9fa5
rollup merge of #20757 : nikomatsakis/issue-20624-assoc-types-coherence
2015-01-08 09:32:06 -08:00
Niko Matsakis
d548f3eade
Remove silly long line.
2015-01-08 12:30:13 -05:00
Alex Crichton
4281bd1932
rollup merge of #20754 : nikomatsakis/int-feature
...
Conflicts:
src/test/compile-fail/borrowck-move-out-of-overloaded-auto-deref.rs
src/test/compile-fail/issue-2590.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/slice-mut-2.rs
src/test/compile-fail/std-uncopyable-atomics.rs
2015-01-08 09:24:08 -08:00
Alex Crichton
8ed88c11af
rollup merge of #20751 : nikomatsakis/issue-20232
...
Issue #20232 . Fun.
r? @eddyb you prob know this system best
2015-01-08 09:22:10 -08:00
Alex Crichton
daee409b60
rollup merge of #20740 : FlaPer87/remove-opt-out-copy
...
[breaking-change] code using this feature will break.
2015-01-08 09:22:06 -08:00
Niko Matsakis
cc1776ef1e
Add another test using projection types in impls.
2015-01-08 12:02:34 -05:00
Niko Matsakis
0d9a11d6ad
Normalize types bottom up. Fixes #20666 .
2015-01-08 12:02:23 -05:00
Niko Matsakis
a661bd6575
Adjust tests to be clearer about the type that results from a shift expression.
2015-01-08 11:26:42 -05:00
Niko Matsakis
75919c554a
Rename test to fit naming convention.
2015-01-08 11:16:07 -05:00
Niko Matsakis
115a443cee
Normalize types in supertraits when checking that impls are valid during wf.
...
Fixes #20559 .
2015-01-08 11:16:07 -05:00
Niko Matsakis
bb0c8ef373
Normalize types in impls, add test for coherence failure.
...
Fixes #20624 .
2015-01-08 11:16:06 -05:00
Niko Matsakis
705b92bdfe
Wrap long line
2015-01-08 11:02:25 -05:00
Niko Matsakis
bf43e8315e
Modify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
...
type name so that messages do not wrap.
2015-01-08 11:02:24 -05:00
Niko Matsakis
20744c6b85
Allow shift operator to take any integral type (and add a test).
2015-01-08 11:02:24 -05:00
Felix S. Klock II
a0f53b0a5b
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.
2015-01-08 11:02:24 -05:00
Felix S. Klock II
b2e93e2767
Update the compile-fail-fulldeps tests with new isize/usize literal suffixes.
2015-01-08 11:02:24 -05:00
Felix S. Klock II
2259fe1214
Accommodate the "int literal is too large" error message currently embedded in rustc.
2015-01-08 11:02:24 -05:00
Huon Wilson
dc1ba08d16
Test fixes.
2015-01-08 11:02:24 -05:00
Huon Wilson
441044f071
Update compile-fail tests to use is/us, not i/u.
2015-01-08 11:02:24 -05:00
Huon Wilson
85f961e2cc
Update compile fail tests to use usize.
2015-01-08 11:02:24 -05:00
Huon Wilson
0c70ce1424
Update compile fail tests to use isize.
2015-01-08 11:02:24 -05:00
Huon Wilson
d12514bc58
Add a warning feature gate for int/uint in types and i/u suffixes.
2015-01-08 11:02:23 -05:00
Manish Goregaokar
6342aa62ef
Ignore extra error from test for now
2015-01-08 20:20:31 +05:30
Niko Matsakis
ba87b540a4
Add new test for #20232 .
2015-01-08 09:19:56 -05:00
Niko Matsakis
2387651f7d
Update the "English-language" to-string function of a cmt to use
...
more modern terminology and update tests accordingly.
2015-01-08 09:19:27 -05:00
Flavio Percoco
0d0869ad73
Remove the deprecated opt_out_copy feature
2015-01-08 13:39:14 +01:00
Brian Anderson
1f70acbf4c
Improvements to feature staging
...
This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.
This makes the transition period to the full feature staging design
a bit nicer.
2015-01-08 03:07:23 -08:00
Manish Goregaokar
f4a2672600
Add test for -Z extra-plugins
2015-01-08 14:47:27 +05:30
Tshepang Lekhonkhobe
0f4ee2d87e
bench: fix a few compiler warnings
2015-01-08 09:11:16 +02:00
Alex Crichton
0abf458348
More test fixes and rebase conflicts
2015-01-07 20:08:37 -08:00
Alex Crichton
ef46caebcc
rollup merge of #20731 : nick29581/assoc-inherant
2015-01-07 19:30:20 -08:00
Alex Crichton
0dc48b47a8
Test fixes and rebase conflicts
2015-01-07 19:27:27 -08:00
Nick Cameron
4d98cbb3f3
Forbid associated items in inherent impls
...
Closes #20359
2015-01-08 15:43:00 +13:00
Alex Crichton
11e265c2e0
rollup merge of #20707 : nikomatsakis/issue-20582
2015-01-07 17:44:24 -08:00