about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2018-03-21termination_trait: Add () example to error messageTyler Mandry-1/+1
2018-03-20typeck: Report main return type errors on return type spanTyler Mandry-14/+0
2018-03-20rename epoch to editionKurtis Nusbaum-4/+4
2018-03-20Match against friendly error messageTyler Mandry-2/+2
2018-03-19Reduce diagnostic verbosity by removing labelsEsteban Küber-4/+2
2018-03-20Stabilize slice patterns without `..`Vadim Petrochenkov-29/+6
Merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`
2018-03-19update compile-fail tests: fewer warnings because this is now a HIR lintRalf Jung-3/+0
2018-03-19Stabilize termination_traitTyler Mandry-4/+2
This stabilizes `main` with non-() return types; see #48453.
2018-03-19Split out termination_trait_test feature gateTyler Mandry-0/+22
2018-03-18add simd_select intrinsicgnzlbg-0/+56
2018-03-17AST: Make renames in imports closer to the sourceVadim Petrochenkov-2/+2
Fix `unused_import_braces` lint false positive on `use prefix::{self as rename}`
2018-03-17Rollup merge of #48983 - gnzlbg:red, r=alexcrichtonkennytm-0/+82
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-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/+1
2018-03-16Auto merge of #48524 - abonander:check-macro-stability, r=petrochenkovbors-0/+38
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-5/+17
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 #48875 - jcowgill:mips-test-fixes, r=sanxiynkennytm-1/+13
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-4/+4
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-26/+1
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-31/+38
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-15Stabilize `inclusive_range` library feature.kennytm-26/+1
Stabilize std::ops::RangeInclusive and std::ops::RangeInclusiveTo.
2018-03-14Reword E0044 and message for `!Send` typesEsteban Küber-31/+38
- Reword E0044 help. - Change error message for types that don't implement `Send`
2018-03-14Add backticks to `main` not found errors.Eric Huss-4/+4
2018-03-14Add note about fallback to `!: !Trait` errorAndrew Cann-0/+41
2018-03-14Make coerce_never lint an errorAndrew Cann-17/+5
Remove the coerce_never lint and make the behaviour an error.
2018-03-14stabilise feature(never_type)Andrew Cann-17/+7
Replace feature(never_type) with feature(exhaustive_patterns). feature(exhaustive_patterns) only covers the pattern-exhaustives checks that used to be covered by feature(never_type)
2018-03-14remove defaulting to unitAndrew Cann-38/+0
Types will no longer default to `()`, instead always defaulting to `!`. This disables the associated warning and removes the flag from TyTuple
2018-03-12Auto merge of #48770 - bobtwinkles:two_phase_borrows_rewrite, r=pnkfelixbors-17/+19
Two phase borrows rewrite This definitely needs a careful review. Both @pnkfelix and @nikomatsakis were involved with the design of this so they're natural choices here. I'm r?'ing @pnkfelix since they wrote the original two-phase borrow implementation. Also ping @KiChjang who expressed interest in working on this. I'm going to leave a few comments below pointing out some of the more dangerous changes I made (i.e. what I would like reviewers to pay special attention too.) r? @pnkfelix
2018-03-10code refactor, modify compile-fail testsgaurikholkar-2/+2
2018-03-10Rename ignored_generic_bounds -> type_alias_boundsRalf Jung-3/+3
First of all, the lint is specific for type aliases. Second, it turns out the bounds are not entirely ignored but actually used when accessing associated types. So change the wording of the lint, and adapt its name to reality. The lint has never been on stable or beta, so renaming is safe.
2018-03-10Auto merge of #47574 - zilbuz:issue-14844, r=nikomatsakisbors-7/+7
Show the used type variable when issuing a "can't use type parameters from outer function" error message Fix #14844 r? @estebank
2018-03-09Remove added two-phase-borrows flagbobtwinkles-1/+1
It seems whatever was causing problems has been fixed.
2018-03-09Fix tests after two-phase borrow rewritebobtwinkles-1/+1
2018-03-09Complete re-implementation of 2-phase borrowsbobtwinkles-1/+0
See #48431 for discussion as to why this was necessary and what we hoped to accomplish. A brief summary: - the first implementation of 2-phase borrows was hard to limit in the way we wanted. That is, it was too good at accepting all 2-phase borrows rather than just autorefs =) - Numerous diagnostic regressions were introduced by 2-phase borrow support which were difficult to fix
2018-03-09Finally start down the right pathbobtwinkles-16/+19
2018-03-09Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkovbors-10/+13
Warn about ignored generic bounds in `for` This adds a new lint to fix #42181. For consistency and to avoid code duplication, I also moved the existing "bounds in type aliases are ignored" here. Questions to the reviewer: * Is it okay to just remove a diagnostic error code like this? Should I instead keep the warning about type aliases where it is? The old code provided a detailed explanation of what's going on when asked, that information is now lost. On the other hand, `span_warn!` seems deprecated (after this patch, it has exactly one user left!). * Did I miss any syntactic construct that can appear as `for` in the surface syntax? I covered function types (`for<'a> fn(...)`), generic traits (`for <'a> Fn(...)`, can appear both as bounds as as trait objects) and bounds (`for<'a> F: ...`). * For the sake of backwards compatibility, this adds a warning, not an error. @nikomatsakis suggested an error in https://github.com/rust-lang/rust/issues/42181#issuecomment-306924389, but I feel that can only happen in a new epoch -- right? Cc @eddyb
2018-03-09test: ignore asm tests on mips* which won't workJames Cowgill-0/+10
"mov" is not a valid assembly mnemonic on mips.
2018-03-08Update testsBasile Desloges-7/+7
2018-03-08borrowck-asm: enable on mipsJames Cowgill-1/+3
2018-03-08Unify the const folding errorsOliver Schneider-91/+80
before they differed depending on whether optimizations were on or not
2018-03-08Update compile-fail testsOliver Schneider-89/+24
2018-03-08Update testsOliver Schneider-24/+28
2018-03-08Update testsOliver Schneider-0/+24
2018-03-08Update testsOliver Schneider-48/+64
2018-03-08Adjust tests to changed const err lintsOliver Schneider-27/+47
2018-03-08Adjust tests to more aggressive const err lintingOliver Schneider-0/+24
2018-03-08Report errors in statics during collecting instead of translatingOliver Schneider-1/+1