about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-03-22Correct minimum system LLVM version in testsSamuel Holland-12/+12
Since commit 9452a8dfa3ba, the new debug info format is only generated for LLVM 8 and newer versions. However, the tests still assume that LLVM 7 will use the new debug info format. Fix the tests (and a comment in the code) to match the actual version check.
2019-03-23resolve: collect trait aliases along with traitsSean McArthur-0/+23
2019-03-22ffi: rename VaList::copy to VaList::with_copyDan Robertson-20/+20
Rename `VaList::copy` to `VaList::with_copy`.
2019-03-22Rollup merge of #59347 - petrochenkov:nomake, r=davidtwcoMazdak Farrokhzad-50/+57
Move one test from run-make-fulldeps to ui The test was written when `--extern` without path didn't exist.
2019-03-22Rollup merge of #59329 - petrochenkov:rmcff, r=alexcrichtonMazdak Farrokhzad-45/+0
cleanup: Remove compile-fail-fulldeps directory again It was already removed once in https://github.com/rust-lang/rust/pull/56444, but was partially resurrected by rebase of some other PR.
2019-03-22Rollup merge of #59323 - euclio:enum-instead-of-variant, r=varkorMazdak Farrokhzad-40/+104
use suggestions for "enum instead of variant" error
2019-03-22Rollup merge of #59322 - estebank:diag-tweak, r=davidtwcoMazdak Farrokhzad-49/+23
Tweak incorrect escaped char diagnostic
2019-03-22Rollup merge of #59321 - varkor:unify-E0109-E0110-E0111, r=davidtwcoMazdak Farrokhzad-182/+179
Unify E0109, E0110 and E0111 Error messages should no longer be restricted to specific generic kinds.
2019-03-22Rollup merge of #59297 - euclio:field-method-suggestions, r=estebankMazdak Farrokhzad-20/+48
convert field/method confusion help to suggestions
2019-03-22Rollup merge of #59266 - estebank:struct-parse-recovery, r=petrochenkovMazdak Farrokhzad-0/+21
Do not complain about non-existing fields after parse recovery When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it. Fix #57361.
2019-03-22Rollup merge of #59190 - greg-kargin:master, r=sanxiynMazdak Farrokhzad-6/+6
consistent naming for Rhs type parameter in libcore/ops Rename RHS type parameter occurrences RHS->Rhs to make it consistent throughout files and follow naming conventions.
2019-03-22Auto merge of #59035 - estebank:closure-instacall, r=davidtwcobors-0/+19
When encountering `||{}()`, suggest the likely intended `(||{})()` Fix #55851.
2019-03-22Auto merge of #59031 - estebank:recover-from-comaless, r=petrochenkovbors-40/+45
Recover from missing comma between enum variants and from bad `pub` kw Fix #56579. Fix #56473.
2019-03-22Fix ICE with const generic param in structvarkor-0/+21
2019-03-21Auto merge of #58981 - estebank:elseless-if, r=davidtwcobors-2/+89
Point at coercion reason for `if` expressions without else clause if caused by return type ``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ``` Fix #25228.
2019-03-21Move one test from run-make-fulldeps to uiVadim Petrochenkov-50/+57
2019-03-21hygiene: Fix identifier comparison in impl overlap checkVadim Petrochenkov-0/+35
2019-03-21use suggestions for "enum instead of variant" errorAndy Russell-40/+104
2019-03-21Auto merge of #58927 - GuillaumeGomez:default-keyword, r=QuietMisdreavusbors-0/+15
Add default keyword handling in rustdoc Fixes #58898. r? @QuietMisdreavus
2019-03-21Auto merge of #58902 - matthewjasper:generator-cleanup-blocks, r=davidtwcobors-20/+85
Fixes for the generator transform * Moves cleanup annotations in pretty printed MIR so that they can be tested * Correctly determines which drops are in cleanup blocks when elaborating generator drops * Use the correct state for poisoning a generator Closes #58892
2019-03-21cleanup: Remove compile-fail-fulldeps directory againVadim Petrochenkov-45/+0
2019-03-20Fix a bug in implied boundsscalexm-3/+31
2019-03-20Gather region constraints not coming from unificationscalexm-2/+0
2019-03-20Tweak incorrect escaped char diagnosticEsteban Küber-49/+23
2019-03-20Update testsvarkor-182/+179
2019-03-20Auto merge of #58791 - denzp:asm-compile-tests, r=alexcrichtonbors-130/+250
Introduce assembly tests suite The change introduces a new test suite - **Assembly** tests. The motivation behind this is an ability to perform end-to-end codegen testing with LLVM backend. Turned out, NVPTX backend sometimes missing common Rust features (`i128` and libcalls in the past, and still full atomics support) due to different reasons. Prior to this change, basic NVPTX assembly tests were implemented within `run-make` suite. Now, it's easier to write additional and maintain existing tests for the target. cc @gnzlbg @peterhj cc @eddyb I adjusted mangling scheme expectation, so there is no need to change the tests for #57967
2019-03-20Add no_hash to query macro and move some queries overJohn Kåre Alsaker-159/+159
2019-03-20Auto merge of #57018 - dcreager:redundant-linker, r=alexcrichtonbors-0/+48
Keep last redundant linker flag, not first When a library (L1) is passed to the linker multiple times, this is sometimes purposeful: there might be several other libraries in the linker command (L2 and L3) that all depend on L1. You'd end up with a (simplified) linker command that looks like: ``` -l2 -l1 -l3 -l1 ``` With the previous behavior, when rustc encountered a redundant library, it would keep the first instance, and remove the later ones, resulting in: ``` -l2 -l1 -l3 ``` This can cause a linker error, because on some platforms (e.g. Linux), the linker will only include symbols from L1 that are needed *at the point it's referenced in the command line*. So if L3 depends on additional symbols from L1, which aren't needed by L2, the linker won't know to include them, and you'll end up with "undefined symbols" errors. A better behavior is to keep the *last* instance of the library: ``` -l2 -l3 -l1 ``` This ensures that all "downstream" libraries have been included in the linker command before the "upstream" library is referenced. Fixes rust-lang#47989
2019-03-19convert field/method confusion help to suggestionsAndy Russell-20/+48
2019-03-19Do not encode gensymed imports in metadataVadim Petrochenkov-0/+10
2019-03-19Ignore test on WindowsDouglas Creager-1/+6
2019-03-19Explicitly prefer dynamic linking in test caseDouglas Creager-0/+1
2019-03-19Rollup merge of #59290 - oli-obk:trivial_move_prop, r=davidtwcoMazdak Farrokhzad-0/+22
Run branch cleanup after copy prop This is preliminary work for https://github.com/rust-lang/rust/pull/59288#issuecomment-474277172 which gets rid of `if` in the HIR. cc @rust-lang/wg-mir-opt @Centril
2019-03-19Rollup merge of #59116 - estebank:comma-sugg, r=petrochenkovMazdak Farrokhzad-6/+22
Be more discerning on when to attempt suggesting a comma in a macro invocation Fix #58796.
2019-03-19Rollup merge of #57847 - clarcharr:dbg_no_params, r=CentrilMazdak Farrokhzad-4/+9
dbg!() without parameters Fixes #57845.
2019-03-19Rollup merge of #57729 - ↵Mazdak Farrokhzad-0/+99
pnkfelix:issue-55748-pat-types-are-constraints-on-bindings-too, r=nikomatsakis extra testing of how NLL handles wildcard type `_` test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X);` and potentially instantiated at different types when used in type ascriptions in let bindings. (NLL's handling of this for the type ascription *expression form* is currently broken, or at least differs from what AST-borrowck does. I'll file a separate bug about that. Its not something critical to address since that expression is guarded by `#![feature(type_ascription)]`.) cc #55748
2019-03-19Run branch cleanup after copy propOliver Scherer-0/+22
2019-03-18Auto merge of #56462 - Zoxc:query-macro, r=oli-obkbors-224/+224
Define queries using a proc macro cc @rust-lang/compiler
2019-03-18filter suggestions from extern preludeAndy Russell-1/+24
2019-03-18Auto merge of #58847 - bjorn3:remove_metadata_only_cg, r=alexcrichtonbors-7/+34
Remove metadata only codegen backend It is unused and probably broken at the moment.
2019-03-18Auto merge of #58872 - rep-nop:diagnostic-fix-56031, r=petrochenkovbors-0/+14
Adds help message in error for invalid `impl for T` syntax Fixes #56031.
2019-03-18Add load_cached query modifier and keep dep node names consistent with query ↵John Kåre Alsaker-224/+224
names
2019-03-18Define queries using a proc macroJohn Kåre Alsaker-91/+91
2019-03-17Do not complain about non-existing fields after parse recoveryEsteban Küber-0/+21
When failing to parse struct-like enum variants, the ADT gets recorded as having no fields. Record that we have actually recovered during parsing of this variant to avoid complaing about non-existing fields when actually using it.
2019-03-18Auto merge of #58824 - euclio:intra-link-ambiguity, r=petrochenkovbors-1/+120
overhaul intra-doc-link ambiguity warning Fixes #52784. - Makes the warning part of the `intra_doc_link_resolution_failure` lint. - Tightens the span to just the ambiguous link. - Reports ambiguities across all three namespaces. - Uses structured suggestions for disambiguation. - Adds a test for the warnings. r? @QuietMisdreavus
2019-03-17Auto merge of #59250 - bovinebuddha:filter_ui_revision_tests, r=petrochenkovbors-720/+560
Filter ui revision tests Updates UI test output filtering to also filter away test annotations for revisions: Previously filtered: //~ ERROR [XXXX] Now also filters: //[revision]~ ERROR [XXXX] I reckon, if we have the one, we should have the other for consistency, its lack was probably an oversight (the existence of revision testing is not really well documented...)
2019-03-17Auto merge of #58994 - oli-obk:deprecated_derive, r=petrochenkovbors-0/+18
Hide deprecation warnings inside derive expansions Fixes #58822
2019-03-17Auto merge of #59047 - petrochenkov:modnodefid, r=Centrilbors-0/+42
resolve: Account for new importable entities Fixes the ICE encountered in https://github.com/rust-lang/rust/pull/58837 r? @Centril
2019-03-17Removed obsolete .stderr test outputsMathias Blikstad-160/+0
2019-03-17Updated UI test output to remove test annotations for revisionsMathias Blikstad-585/+585