summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2016-09-21Workaround #34427 by using memset of 0 on ARM to set the discriminant.Felix S. Klock II-0/+26
Conflicts: src/librustc_trans/adt.rs
2016-09-21add missing testNiko Matsakis-0/+28
2016-09-21use `adt::trans_const` when translating constant closures and tuplesAriel Ben-Yehuda-0/+25
Fixes #36401
2016-09-19Remove data structure specialization for .zip() iteratorUlrik Sverdrup-0/+17
Go back on half the specialization, the part that changed the Zip struct's fields themselves depending on the types of the iterators. This means that the Zip iterator will always carry two usize fields, which are unused. If a whole for loop using a .zip() iterator is inlined, these are simply removed and have no effect. The same improvement for Zip of for example slice iterators remain, and they still optimize well. However, like when the specialization of zip was merged, the compiler is still very sensistive to the exact context. For example this code only autovectorizes if the function is used, not if the code in zip_sum_i32 is inserted inline it was called: ``` fn zip_sum_i32(xs: &[i32], ys: &[i32]) -> i32 { let mut s = 0; for (&x, &y) in xs.iter().zip(ys) { s += x * y; } s } fn zipdot_i32_default_zip(b: &mut test::Bencher) { let xs = vec![1; 1024]; let ys = vec![1; 1024]; b.iter(|| { zip_sum_i32(&xs, &ys) }) } ``` Include a test that checks that Zip<T, U> is covariant w.r.t. T and U.
2016-09-19Up the LLVMSimonas Kazlauskas-0/+40
Fixes #36474
2016-09-16Fix issue #36036.Felix S. Klock II-0/+36
We were treating an associated type as unsized even when the concrete instantiation was actually sized. Fix is to normalize before checking if it is sized.
2016-09-12llvm: backport "[SimplifyCFG] Hoisting invalidates metadata".Eduard Burtescu-0/+32
2016-09-12rustc_trans: do not generate allocas for unused locals.Eduard Burtescu-0/+18
2016-09-12typeck: use NoExpectation to check return type of diverging fnAlex Burka-0/+18
This fixes #35849, a regression introduced by the typeck refactoring around TyNever/!.
2016-08-22Properly invalidate the early exit cacheSimonas Kazlauskas-0/+37
Fixes #35737
2016-08-16Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakisbors-5/+112
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-14Rollup merge of #35648 - ahmedcharles:pred, r=alexcrichtonEduard-Mihai Burtescu-18/+0
Predicates haven't existed in almost 5 years. This test probably adds negative value other than historical amusement.
2016-08-14Rollup merge of #35647 - ahmedcharles:spelling, r=alexcrichtonEduard-Mihai Burtescu-22/+22
Ensure that attributes are spelled properly.
2016-08-14Rollup merge of #35574 - badboy:emscripten-test-fixes, r=brsonEduard-Mihai Burtescu-3/+54
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-14Rollup merge of #35533 - frewsxcv:22984, r=brsonEduard-Mihai Burtescu-0/+13
Add regression test for #22894. None
2016-08-14Auto merge of #34206 - petrochenkov:pipdeny, r=nikomatsakisbors-1/+1
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-13Improve comments on ! testsAndrew Cann-0/+1
2016-08-13Fix `make tidy`Andrew Cann-1/+1
2016-08-13Add explanations to testsAndrew Cann-0/+9
2016-08-13Add another test for !Andrew Cann-0/+34
2016-08-13Add tests for ! typeAndrew Cann-0/+60
2016-08-13Add run-pass/never_coercions.rs testAndrew Cann-0/+19
2016-08-13Remove obsolete divergence related stuffAndrew Cann-16/+0
Replace FnOutput with Ty Replace FnConverging(ty) with ty Purge FnDiverging, FunctionRetTy::NoReturn and FunctionRetTy::None
2016-08-13Predicates haven't existed in almost 5 years.Ahmed Charles-18/+0
This test probably adds negative value other than historical amusement.
2016-08-13Ensure that attributes are spelled properly.Ahmed Charles-22/+22
2016-08-13Parse numeric fields in struct expressions and patternsVadim Petrochenkov-0/+23
2016-08-13Remove restrictions from tuple structs/variantsVadim Petrochenkov-69/+78
Hard errors are turned into feature gates
2016-08-12test: add more extensive tests for impl Trait.Eduard Burtescu-0/+43
2016-08-12typeck: leak auto trait obligations through impl Trait.Eduard Burtescu-0/+44
2016-08-12typeck: record `impl Trait` concrete resolutions.Eduard Burtescu-0/+969
2016-08-12rustc: always normalize projections in ty::layout regardless where they appear.Eduard Burtescu-0/+23
2016-08-11Make `private_in_public` compatibility lint deny-by-defaultVadim Petrochenkov-1/+1
2016-08-11Rollup merge of #35505 - futile:test_29053, r=nikomatsakisJonathan Turner-0/+21
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-10Auto merge of #35525 - jonathandturner:rollup, r=jonathandturnerbors-0/+19
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[emscripten] Disable code paths that don't work on emscriptenJan-Erik Rediger-2/+4
2016-08-10[emscripten] Ignore testsJan-Erik Rediger-1/+50
Most of these rely on spawning processes, which is not possible in Emscripten.
2016-08-08Auto merge of #34762 - creativcoder:slice-ext, r=alexcrichtonbors-0/+29
extend lifetime on binary_search_by_key of SliceExt trait Fixes #34683.
2016-08-08Add regression test for #22894.Corey Farwell-0/+13
2016-08-08Rollup merge of #35458 - GuillaumeGomez:test_string_ICE, r=alexcrichtonJonathan Turner-0/+19
Add run-pass test for issue 33498 Fixes #33498. r? @alexcrichton
2016-08-08add test for issue #29053Felix Rath-0/+21
2016-08-09extend lifetime on binary_search_by_key of SliceExt traitRahul Sharma-0/+29
2016-08-07Add run-pass test for issue 33498Guillaume Gomez-0/+19
2016-08-06Add regression test for #20847.Corey Farwell-0/+21
2016-08-06Rewrite TypeId computation to not miss anything and work cross-crate.Eduard Burtescu-45/+101
2016-08-04rustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.Eduard Burtescu-0/+26
2016-08-03Support removed LLVM intrinsics by invoking its AutoUpgrade mechanism.Eduard Burtescu-0/+30
2016-08-03rustc_trans: don't lose the cross-crate DefId, MIR trans needs it.Eduard Burtescu-0/+28
2016-08-02tests: mark the inline asm in run-pass/issue-14936 as volatile.Eduard Burtescu-1/+2
2016-08-02tests: don't use -Zorbit on run-pass/issue-28950, it stack overflows.Eduard Burtescu-0/+3
2016-08-01Auto merge of #35163 - sanxiyn:rollup, r=sanxiynbors-110/+13
Rollup of 8 pull requests - Successful merges: #34802, #35033, #35085, #35114, #35134, #35140, #35141, #35157 - Failed merges: