about summary refs log tree commit diff
path: root/src/test/ui/impl-trait
AgeCommit message (Collapse)AuthorLines
2019-04-23Stabilize futures_apiTaylor Cramer-2/+2
2019-04-23Update ui testsvarkor-19/+19
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-6/+0
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-12/+6
2019-03-31Suggest using anonymous lifetime in `impl Trait` return without hacksEsteban Küber-10/+14
Fallback to `static_impl_trait` for nice error message by peeking at the return type and the lifetime type. Point at the return type instead of the return expr/stmt in NLL mode.
2019-03-29Suggest using anonymous lifetime in `impl Trait` returnEsteban Küber-3/+9
2019-03-15rustc: provide DisambiguatedDefPathData in ty::print.Eduard-Mihai Burtescu-6/+6
2019-03-12Auto merge of #58608 - ↵bors-0/+212
pnkfelix:warning-period-for-detecting-nested-impl-trait, r=zoxc Warning period for detecting nested impl trait Here is some proposed code for making a warning period for the new checking of nested impl trait. It undoes some of the corrective effects of PR #57730, by using boolean flags to track parts of the analysis that were previously skipped prior to PRs #57730 and #57981 landing. Cc #57979
2019-03-11Update testsVadim Petrochenkov-29/+29
2019-03-11Test illustrating that the nested_impl_trait lint should only catch shallow ↵Felix S. Klock II-0/+72
cases.
2019-03-08Unit (and regression) tests for warning cycle code.Felix S. Klock II-0/+140
2019-02-24Deny `async fn` in 2015 editionNathan Corbyn-16/+26
Fix style issues and update diagnostic messages Update src/librustc_passes/diagnostics.rs Co-Authored-By: doctorn <me@nathancorbyn.com> Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition
2019-02-07Resolve incorrect diagnostic for using a non-const value in a constantvarkor-21/+13
2019-01-24Rollup merge of #57793 - estebank:impl-trait-resolve, r=oli-obkMazdak Farrokhzad-1/+4
Explain type mismatch cause pointing to return type when it is `impl Trait` Fix #57743.
2019-01-20Explain type mismatch cause pointing to return type when it is `impl Trait`Esteban Küber-1/+4
2019-01-20Remove unnecessary dummy span checksEsteban Küber-3/+3
The emitter already verifies wether a given span note or span label can be emitted to the output. If it can't, because it is a dummy span, it will be either elided for labels or emitted as an unspanned note/help when applicable.
2019-01-11Update testsJohn Kåre Alsaker-0/+22
2019-01-03Forbid impl Trait from referring to unnamable recursive typesMatthew Jasper-8/+222
There is no type T, such that `T = [T; 2]`, we should not allow this to be circumvented by impl Trait.
2019-01-01privacy: Use common `DefId` visiting infra for all privacy visitorsVadim Petrochenkov-1/+3
2018-12-25Remove licensesMark Rousskov-530/+151
2018-12-20Point at coercion source on type errors for fn returning `impl Trait`Esteban Küber-0/+3
2018-12-04Update testsOliver Scherer-5/+12
2018-11-03Regression test for issue 55608.Felix S. Klock II-0/+33
2018-10-18Rollup merge of #55102 - petrochenkov:trextra, r=nikomatsakiskennytm-0/+20
resolve: Do not skip extern prelude during speculative resolution Fixes https://github.com/rust-lang/rust/issues/54665
2018-10-17resolve: Do not skip extern prelude during speculative resolutionVadim Petrochenkov-0/+20
2018-10-17Update output for borrowck=migrate compare mode.David Wood-86/+0
This commit updates the test output for the updated NLL compare mode that uses `-Z borrowck=migrate` rather than `-Z borrowck=mir`. The previous commit changes `compiletest` and this commit only updates `.nll.stderr` files.
2018-10-11structured suggestion for E0223 ambiguous associated typeZack M. Davis-3/+1
It looks like we tend to use angle-brackets around the placeholder in the few other places we use `Applicability::HasPlaceholders`, but that would be confusing here, so ...
2018-10-07Auto merge of #54810 - 1aim:unused-impl-trait, r=oli-obkbors-0/+73
Fix dead code lint for functions using impl Trait Fixes https://github.com/rust-lang/rust/issues/54754 This is a minimal fix that doesn't add any new queries or touches unnecessary code. Please nominate for beta backport if wanted.
2018-10-05Auto merge of #54741 - oli-obk:impl_trait_hierarchy, r=cramertjbors-0/+19
Nest the `impl Trait` existential item inside the return type fixes #54045 r? @cramertj
2018-10-04Convert issue-49376.rs to compile-passJonas Schievink-0/+31
2018-10-04Convert existential-minimal.rs to compile-passJonas Schievink-0/+15
2018-10-04Convert impl-trait/issue-42479.rs to compile-passJonas Schievink-0/+27
2018-10-02Nest the `impl Trait` existential item inside the return typeOliver Schneider-0/+19
2018-09-30Added help message for `impl_trait_in_bindings` feature gate.Alexander Regueiro-0/+2
2018-09-26use the closure def-id in returns, but closure-base def-id in localsNiko Matsakis-0/+14
Using the `closure_base_def_id` indiscriminantely, as we were doing before, winds up "going wrong" if the closure type includes the `impl Trait` from the parent. The problem arises because the return value for closures is inferred and meant to treat the return type *opaquely*, so we don't want to be "desugaring" it into the underlying type.
2018-09-25Added tests.Alexander Regueiro-1/+114
2018-09-19Update ui testsMatthew Jasper-8/+8
2018-09-18Auto merge of #53900 - davidtwco:issue-53771, r=nikomatsakisbors-0/+14
NLL regresses diagnostic for impl-trait/static-return-lifetime-infered.rs Fixes #53771. r? @nikomatsakis cc @pnkfelix @estebank
2018-09-14Rollup merge of #53829 - alexcrichton:release-debuginfo, r=michaelwoeristerkennytm-3/+6
Add rustc SHA to released DWARF debuginfo This commit updates the debuginfo that is encoded in all of our released artifacts by default. Currently it has paths like `/checkout/src/...` but these are a little inconsistent and have changed over time. This commit instead attempts to actually define the file paths in our debuginfo to be consistent between releases. All debuginfo paths are now intended to be `/rustc/$sha` where `$sha` is the git sha of the released compiler. Sub-paths are all paths into the git repo at that `$sha`.
2018-09-13Updated suggestion/help messages.David Wood-7/+5
2018-09-13Emit appropriate suggestion when there's already 'static bound on the return ↵David Wood-3/+3
type.
2018-09-13Don't suggest adding a synthesized region name.David Wood-2/+2
2018-09-13Added help message for impl trait static constraint.David Wood-0/+16
2018-09-10Add rustc SHA to released DWARF debuginfoAlex Crichton-3/+6
This commit updates the debuginfo that is encoded in all of our released artifacts by default. Currently it has paths like `/checkout/src/...` but these are a little inconsistent and have changed over time. This commit instead attempts to actually define the file paths in our debuginfo to be consistent between releases. All debuginfo paths are now intended to be `/rustc/$sha` where `$sha` is the git sha of the released compiler. Sub-paths are all paths into the git repo at that `$sha`.
2018-09-08Auto merge of #53705 - ms2300:tmp, r=oli-obkbors-2/+2
#53576 Renaming TyAnon -> TyOpaque Fixes #53576
2018-09-06Fix testsWesley Wiser-2/+2
2018-09-06Fixing tests from anon -> opaquems2300-2/+2
2018-09-01Update testsBasile Desloges-48/+0
2018-08-27fix anotherMark Mansi-1/+1