about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-03-19Revert "Remove useless powerpc64 entry from ARCH_TABLE, closes #47737"varkor-0/+10
This reverts commit 16ac85ce4dce1e185f2e6ce27df3833e07a9e502.
2018-03-17Auto merge of #48936 - Zoxc:cstore, r=michaelwoeristerbors-1/+1
Make CrateMetadata and CStore thread-safe r? @michaelwoerister
2018-03-17Rollup merge of #49077 - sinkuu:macro_use_typo, r=estebankkennytm-0/+43
Checks for unknown attributes before aborting due to unresolved macros Fixes #49074 The ``attribute `...` is currently unknown to the compiler`` error was not shown if there are any unresolved macros, which might be caused by mistyped `macro_use`.
2018-03-17Rollup merge of #48983 - gnzlbg:red, r=alexcrichtonkennytm-0/+254
add intrinsics for portable packed simd vector reductions Adds the following portable vector reduction intrinsics: * fn simd_reduce_add<T, U>(x: T) -> U; * fn simd_reduce_mul<T, U>(x: T) -> U; * fn simd_reduce_min<T, U>(x: T) -> U; * fn simd_reduce_max<T, U>(x: T) -> U; * fn simd_reduce_and<T, U>(x: T) -> U; * fn simd_reduce_or<T, U>(x: T) -> U; * fn simd_reduce_xor<T, U>(x: T) -> U; I've also added: * fn simd_reduce_all<T>(x: T) -> bool; * fn simd_reduce_any<T>(x: T) -> bool; These produce better code that what we are currently producing in `stdsimd`, but the code is still not optimal due to this LLVM bug: https://bugs.llvm.org/show_bug.cgi?id=36702 r? @alexcrichton
2018-03-17Rollup merge of #48960 - nikomatsakis:issue-48468-dyn-trait-elision, r=cramertjkennytm-0/+59
resolve `'_` in `dyn Trait` just like ordinary elision r? @cramertj Fixes #48468
2018-03-16Auto merge of #48818 - michaelwoerister:issue-47309, r=eddybbors-0/+31
Properly handle collecting default impls of methods with lifetime parameters. r? @eddyb Fixes #47309.
2018-03-16ignore emscriptengnzlbg-0/+2
2018-03-16Auto merge of #48813 - sinkuu:build_in_assert_macro, r=alexcrichtonbors-2/+14
Make `assert` a built-in procedural macro Makes `assert` macro a built-in one without touching its functionality. This is a prerequisite for RFC 2011 (#44838).
2018-03-16Checks for unknown attributes before abortingShotaro Yamada-0/+43
...due to unresolved macros.
2018-03-16Auto merge of #48524 - abonander:check-macro-stability, r=petrochenkovbors-0/+78
check stability of macro invocations I haven't implemented tests yet but this should be a pretty solid prototype. I think as-implemented it will also stability-check macro invocations in the same crate, dunno if we want that or not. I don't know if we want this to go through `rustc::middle::stability` or not, considering the information there wouldn't be available at the time of macro expansion (even for external crates, right?). r? @nrc closes #34079 cc @petrochenkov @durka @jseyfried #38356
2018-03-16Auto merge of #49051 - kennytm:rollup, r=kennytmbors-133/+400
Rollup of 17 pull requests - Successful merges: #48706, #48875, #48892, #48922, #48957, #48959, #48961, #48965, #49007, #49024, #49042, #49050, #48853, #48990, #49037, #49049, #48972 - Failed merges:
2018-03-16Rollup merge of #49037 - estebank:coherence-tweaks, r=nikomatsakiskennytm-10/+43
Coherence diagnostic tweaks
2018-03-16Rollup merge of #48990 - ExpHP:dont-drop-the-bomb, r=estebankkennytm-0/+39
Fix ICE on malformed plugin attributes See #48941 for some discussion. This bug had several duplicate reports which were never closed as dupes: Fixes #47612 Fixes #48387 Fixes #48941 Fixes #48982
2018-03-16Rollup merge of #49042 - kennytm:fix-e0307-typo, r=rkruppekennytm-1/+1
Remove unnecessary "`" in error message E0307 (invalid self type).
2018-03-16Rollup merge of #49007 - estebank:follow-up-47574, r=oli-obkkennytm-8/+9
Some tweaks to "type parameters from outer function" diagnostic Follow up to #47574.
2018-03-15Coherence diagnostic tweaksEsteban Küber-10/+43
2018-03-16Rollup merge of #48922 - petrochenkov:asunder, r=nikomatsakiskennytm-0/+130
Implement import renaming with `_` (RFC 2166) cc https://github.com/rust-lang/rust/issues/48216
2018-03-16Rollup merge of #48875 - jcowgill:mips-test-fixes, r=sanxiynkennytm-10/+72
MIPS testsuite fixes This PR adjusts various bits in the testsuite so that more stuff passes on mips*.
2018-03-16Rollup merge of #48706 - ehuss:main-not-found-in-crate, r=estebankkennytm-104/+106
Add crate name to "main function not found" error message. Fixes #44798 and rust-lang/cargo#4948. I was wondering if it might be cleaner to update the ui tests to add a simple `fn main() {}` for the unrelated tests. Let me know if you would prefer that.
2018-03-15add missing min-llvm-versiongnzlbg-0/+5
2018-03-15Auto merge of #47813 - kennytm:stable-incl-range, r=nrcbors-141/+89
Stabilize inclusive range (`..=`) Stabilize the followings: * `inclusive_range` — The `std::ops::RangeInclusive` and `std::ops::RangeInclusiveTo` types, except its fields (tracked by #49022 separately). * `inclusive_range_syntax` — The `a..=b` and `..=b` expression syntax * `dotdoteq_in_patterns` — Using `a..=b` in a pattern cc #28237 r? @rust-lang/lang
2018-03-15add compile fail testsgnzlbg-0/+76
2018-03-15Auto merge of #48138 - estebank:issue-45092, r=nikomatsakisbors-51/+116
Reword E0044 and message for `!Send` types - Reword E0044 help. - Change error message for types that don't implement `Send` CC #45092, #46678, #24909, #33307.
2018-03-15Properly handle collecting default impls of methods with lifetime parameters.Michael Woerister-0/+31
2018-03-15Remove unnecessary "`" in error message E0307 (invalid self type).kennytm-1/+1
2018-03-15add min-llvm version to reduction testsgnzlbg-0/+2
2018-03-15Disallow &a..=b and box a..=b in pattern.kennytm-0/+84
They are disallowed because they have different precedence than expressions. I assume parenthesis in pattern will be soon stabilized and thus write that as suggestion directly.
2018-03-15Stabilize `dotdoteq_in_patterns` language feature.kennytm-29/+0
Stabilize `match 2 { 1..=3 => {} }`.
2018-03-15Stabilize `inclusive_range_syntax` language feature.kennytm-86/+4
Stabilize the syntax `a..=b` and `..=b`.
2018-03-15Stabilize `inclusive_range` library feature.kennytm-30/+5
Stabilize std::ops::RangeInclusive and std::ops::RangeInclusiveTo.
2018-03-15Auto merge of #48648 - snf:fallible_allocation, r=Kimundibors-0/+25
Fallible allocation Implementing RFC#2116 [Fallible Allocation](https://github.com/rust-lang/rust/issues/48043) . Work in progress. Initially adding @Gankro's try_reserve for Vec.
2018-03-14Add span label to E0044Esteban Küber-2/+3
2018-03-14Review comment: remove mention of `move` closureEsteban Küber-4/+5
2018-03-14Make hint clearer, with the potential of being wrongEsteban Küber-2/+2
2018-03-14Suggest using `move` when trying to share `...::channel::{Receiver, Sender}`Esteban Küber-0/+56
Extend `rustc_on_unimplemented` to match on ADT without evaluating type arguments.
2018-03-14Reword E0044 and message for `!Send` typesEsteban Küber-51/+58
- Reword E0044 help. - Change error message for types that don't implement `Send`
2018-03-14Auto merge of #47630 - canndrew:exhaustive-patterns, r=nikomatsakisbors-242/+83
Stabilise feature(never_type). Introduce feature(exhaustive_patterns) This stabilizes `!`, removing the feature gate as well as the old defaulting-to-`()` behavior. The pattern exhaustiveness checks which were covered by `feature(never_type)` have been moved behind a new `feature(exhaustive_patterns)` gate.
2018-03-14resolve `'_` in `dyn Trait` just like ordinary elisionNiko Matsakis-0/+59
cc #48468
2018-03-14Update E0601 test for new message format.Eric Huss-1/+1
2018-03-14Some tweaks to "type parameters from outer function" diagnosticEsteban Küber-8/+9
Follow up to #47574.
2018-03-14Add backticks to `main` not found errors.Eric Huss-13/+13
2018-03-14Add suggestion where to add main function.Eric Huss-0/+22
2018-03-14Add empty main() to tests where it is missing.Eric Huss-95/+75
2018-03-14Add crate name to "main function not found" error message.Eric Huss-24/+24
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14expose ordered/unordered/nanless intirnsicsgnzlbg-39/+65
2018-03-15Rollup merge of #48988 - bobtwinkles:add_48070_test, r=nikomatsakiskennytm-0/+35
Add a test for #48070 Resolves #48070. The bug itself was fixed by #48770, but that PR didn't add a test for it. r? @nikomatsakis
2018-03-14Remove syntax and syntax_pos thread localsJohn Kåre Alsaker-15/+36
2018-03-14try_reserve: updating message for feature-gate-try_reserve.stderrsnf-1/+1
2018-03-14implementing fallible allocation API (try_reserve) for Vec, String and HashMapsnf-0/+25
2018-03-14Implement import renaming with `_` (RFC 2166)Vadim Petrochenkov-0/+130