Andre Bogus
744312754d
fixed and extended tests once more
2016-08-28 20:35:48 +02:00
Andre Bogus
e0eb1ba0db
fixed and extended tests, however...
...
...there is still one confusing thing – see the _BAZ functions, which
appear to be elided in the `compile-fail` test and defaulted in the
´run-pass` test (if you uncomment line 73).
2016-08-23 21:38:57 +02:00
Andre Bogus
8bdb3e10ca
fix run-pass test
2016-08-23 12:34:28 +02:00
Andre Bogus
cfce351ad3
first attempt at implementing RFC 1623. This fixes #35897 .
...
This is a work in progress. In particular, I want to add more tests,
especially the compile-fail test is very bare-bones.
2016-08-23 07:50:13 +02:00
bors
42584d36f6
Auto merge of #35777 - nrc:carrier3, r=@nikomatsakis
...
Carrier trait (third attempt)
This adds a `Carrier` trait to operate with `?`. The only public implementation is for `Result`, so effectively the trait does not exist, however, it ensures future compatibility for the `?` operator. This is not intended to be used, nor is it intended to be a long-term solution.
Although this exact PR has not been through Crater, I do not expect it to be a breaking change based on putting numerous similar PRs though Crater in the past.
cc:
* [? tracking issue](https://github.com/rust-lang/rust/issues/31436 )
* [previous PR](https://github.com/rust-lang/rust/pull/35056 )
* [RFC issue](https://github.com/rust-lang/rfcs/issues/1718 ) for discussion of long-term Carrier trait solutions.
r? @nikomatsakis
2016-08-21 15:12:43 -07:00
bors
413ada3040
Auto merge of #35719 - Amanieu:atomic_access, r=alexcrichton
...
Implement RFC 1649
cc #35603 rust-lang/rfcs#1649
r? @alexcrichton
2016-08-18 18:44:54 -07:00
Nick Cameron
5aa89d8bf6
Remove the Option and bool impls for carrier and add a dummy impl
...
The dummy impl should ensure the same type checking behaviour as having other (real) Carrier impls.
2016-08-19 13:31:55 +12:00
Nick Cameron
683bcc0295
Use a Carrier trait with the ? operator
...
Allows use with `Option` and custom `Result`-like types.
2016-08-18 16:51:56 +12:00
Simonas Kazlauskas
2d366428cc
Properly invalidate the early exit cache
...
Fixes #35737
2016-08-17 21:09:30 +03:00
Amanieu d'Antras
ee1fc38c2a
Add a test to check that AtomicBool has the proper representation
2016-08-17 15:34:43 +01:00
bors
e25542cb02
Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakis
...
Implement the `!` type
This implements the never type (`!`) and hides it behind the feature gate `#[feature(never_type)]`. With the feature gate off, things should build as normal (although some error messages may be different). With the gate on, `!` is usable as a type and diverging type variables (ie. types that are unconstrained by anything in the code) will default to `!` instead of `()`.
2016-08-16 00:12:12 -07:00
Eduard-Mihai Burtescu
43cd345a9e
Rollup merge of #35648 - ahmedcharles:pred, r=alexcrichton
...
Predicates haven't existed in almost 5 years.
This test probably adds negative value other than historical amusement.
2016-08-14 20:29:53 +03:00
Eduard-Mihai Burtescu
c63adb1712
Rollup merge of #35647 - ahmedcharles:spelling, r=alexcrichton
...
Ensure that attributes are spelled properly.
2016-08-14 20:29:53 +03:00
Eduard-Mihai Burtescu
8ade28e9a2
Rollup merge of #35574 - badboy:emscripten-test-fixes, r=brson
...
Emscripten test fixes
This picks up parts of #31623 to disable certain tests that emscripten can't run, as threads/processes are not supported.
I re-applied @tomaka's changes manually, I can rebase those commits with his credentials if he wants.
It also disables jemalloc for emscripten (at least in Rustbuild, I have to check if there is another setting for the same thing in the old makefile approach).
This should not impact anything for normal builds.
2016-08-14 20:29:49 +03:00
Eduard-Mihai Burtescu
b1ec5b2ad2
Rollup merge of #35533 - frewsxcv:22984, r=brson
...
Add regression test for #22894 .
None
2016-08-14 20:29:48 +03:00
bors
d927fa4856
Auto merge of #34206 - petrochenkov:pipdeny, r=nikomatsakis
...
Make `private_in_public` compatibility lint deny-by-default
In accordance with the [plan](https://internals.rust-lang.org/t/fcp-for-various-future-compatibility-warnings/3590/5?u=petrochenkov ).
r? @nikomatsakis
2016-08-14 03:50:50 -07:00
Andrew Cann
6b8dacee9e
Improve comments on ! tests
2016-08-13 21:37:09 +08:00
Andrew Cann
5bd54a2468
Fix make tidy
2016-08-13 21:37:09 +08:00
Andrew Cann
29f3636282
Add explanations to tests
2016-08-13 21:37:09 +08:00
Andrew Cann
06747c669f
Add another test for !
2016-08-13 21:37:09 +08:00
Andrew Cann
00a71ea644
Add tests for ! type
2016-08-13 21:37:09 +08:00
Andrew Cann
a05560bebe
Add run-pass/never_coercions.rs test
2016-08-13 21:37:09 +08:00
Andrew Cann
ed02344fbc
Remove obsolete divergence related stuff
...
Replace FnOutput with Ty
Replace FnConverging(ty) with ty
Purge FnDiverging, FunctionRetTy::NoReturn and FunctionRetTy::None
2016-08-13 21:37:09 +08:00
Ahmed Charles
ab00b940bb
Predicates haven't existed in almost 5 years.
...
This test probably adds negative value other than historical amusement.
2016-08-13 02:45:53 -07:00
Ahmed Charles
6fbff4f06a
Ensure that attributes are spelled properly.
2016-08-13 02:41:43 -07:00
Vadim Petrochenkov
f6624782d4
Parse numeric fields in struct expressions and patterns
2016-08-13 00:08:14 +03:00
Vadim Petrochenkov
59be332a1b
Remove restrictions from tuple structs/variants
...
Hard errors are turned into feature gates
2016-08-13 00:08:14 +03:00
Eduard Burtescu
23f0494114
test: add more extensive tests for impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
08bf9f69b9
typeck: leak auto trait obligations through impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
d92e594c38
typeck: record impl Trait concrete resolutions.
2016-08-12 06:43:34 +03:00
Eduard Burtescu
ab26dbb96f
rustc: always normalize projections in ty::layout regardless where they appear.
2016-08-12 06:43:34 +03:00
Vadim Petrochenkov
737961b6c6
Make private_in_public compatibility lint deny-by-default
2016-08-11 23:19:04 +03:00
Jonathan Turner
ea342549a8
Rollup merge of #35505 - futile:test_29053, r=nikomatsakis
...
Add test for issue #29053
This PR adds a test for #29053 (currently fails on stage 0, but works with stage 1, as it should).
Fixes #29053
2016-08-11 06:33:59 -07:00
bors
1f2ae3849c
Auto merge of #35525 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 15 pull requests
- Successful merges: #35371 , #35396 , #35446 , #35449 , #35452 , #35458 , #35465 , #35466 , #35470 , #35475 , #35477 , #35484 , #35504 , #35507 , #35524
- Failed merges: #35395 , #35415
2016-08-10 10:03:08 -07:00
Jan-Erik Rediger
60599df03b
[emscripten] Disable code paths that don't work on emscripten
2016-08-10 16:39:32 +02:00
Jan-Erik Rediger
ad91873cb6
[emscripten] Ignore tests
...
Most of these rely on spawning processes, which is not possible in
Emscripten.
2016-08-10 16:38:31 +02:00
bors
58c5716e2d
Auto merge of #34762 - creativcoder:slice-ext, r=alexcrichton
...
extend lifetime on binary_search_by_key of SliceExt trait
Fixes #34683 .
2016-08-08 21:51:01 -07:00
Corey Farwell
9d6fa40ba1
Add regression test for #22894 .
2016-08-08 18:33:16 -04:00
Jonathan Turner
732e8f204a
Rollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichton
...
Add run-pass test for issue 33498
Fixes #33498 .
r? @alexcrichton
2016-08-08 13:25:57 -07:00
Felix Rath
3c04ba2c34
add test for issue #29053
2016-08-08 21:04:51 +02:00
Rahul Sharma
6fd1752b25
extend lifetime on binary_search_by_key of SliceExt trait
2016-08-09 00:32:35 +05:30
Guillaume Gomez
56eba5a446
Add run-pass test for issue 33498
2016-08-07 13:55:08 +02:00
Corey Farwell
7fd7af9199
Add regression test for #20847 .
2016-08-06 16:01:12 -04:00
Eduard Burtescu
d42da7b8f3
Rewrite TypeId computation to not miss anything and work cross-crate.
2016-08-06 00:50:13 +03:00
Eduard Burtescu
fbabe61641
rustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.
2016-08-04 19:57:57 +03:00
Eduard Burtescu
63f0c4de67
Support removed LLVM intrinsics by invoking its AutoUpgrade mechanism.
2016-08-03 22:37:57 +03:00
Eduard Burtescu
ee977e715f
rustc_trans: don't lose the cross-crate DefId, MIR trans needs it.
2016-08-03 01:25:34 +03:00
Eduard Burtescu
dbc3391a23
tests: mark the inline asm in run-pass/issue-14936 as volatile.
2016-08-02 09:01:48 +03:00
Eduard Burtescu
b197a375c0
tests: don't use -Zorbit on run-pass/issue-28950, it stack overflows.
2016-08-02 09:01:48 +03:00
bors
28ce3e8a55
Auto merge of #35163 - sanxiyn:rollup, r=sanxiyn
...
Rollup of 8 pull requests
- Successful merges: #34802 , #35033 , #35085 , #35114 , #35134 , #35140 , #35141 , #35157
- Failed merges:
2016-08-01 08:57:32 -07:00