rust/src/test/ui/generator
bors 3d0774d0dc Auto merge of #86700 - lqd:matthews-nll-hrtb-errors, r=nikomatsakis
Matthew's work on improving NLL's "higher-ranked subtype error"s

This PR rebases `@matthewjasper's` [branch](https://github.com/matthewjasper/rust/tree/nll-hrtb-errors) which has great work to fix the obscure higher-ranked subtype errors that are tracked in #57374.

These are a blocker to turning full NLLs on, and doing some internal cleanups to remove some of the old region code.

The goal is so `@nikomatsakis` can take a look at this early, and I'll then do my best to help do the changes and followup work to land this work, and move closer to turning off the migration mode.

I've only updated the branch and made it compile, removed a warning or two.

r? `@nikomatsakis`

(Here's the [zulip topic to discuss this](https://rust-lang.zulipchat.com/#narrow/stream/122657-t-compiler.2Fwg-nll/topic/.2357374.3A.20improving.20higher-ranked.20subtype.20errors.20via.20.2386700) that Niko wanted)
2021-08-18 15:54:59 +00:00
..
auxiliary
print Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
addassign-yield.rs
async-generator-issue-67158.rs
async-generator-issue-67158.stderr
auto-trait-regions.nll.stderr Report nicer errors for HRTB NLL errors from queries 2021-08-15 09:11:01 +02:00
auto-trait-regions.rs
auto-trait-regions.stderr
borrow-in-tail-expr.rs
borrowing.rs
borrowing.stderr
conditional-drop.rs
control-flow.rs
discriminant.rs
drop-and-replace.rs
drop-env.rs
dropck-resume.rs
dropck-resume.stderr
dropck.rs
dropck.stderr
generator-region-requirements.migrate.stderr
generator-region-requirements.rs
generator-region-requirements.stderr
generator-resume-after-panic.rs
generator-with-nll.rs
generator-with-nll.stderr
generator-yielding-or-returning-itself.rs
generator-yielding-or-returning-itself.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
issue-44197.rs
issue-45729-unsafe-in-generator.mir.stderr
issue-45729-unsafe-in-generator.rs
issue-45729-unsafe-in-generator.thir.stderr
issue-48048.rs
issue-48048.stderr
issue-52398.rs
issue-52398.stderr
issue-53548-1.rs
issue-53548.rs
issue-57084.rs
issue-57084.stderr
issue-58888.rs
issue-61442-stmt-expr-with-drop.rs
issue-62506-two_awaits.rs
issue-64620-yield-array-element.rs
issue-64620-yield-array-element.stderr
issue-68112.rs
issue-68112.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
issue-69017.rs
issue-69039.rs
iterator-count.rs
layout-error.rs Make all tests use type_alias_impl_trait feature instead of min 2021-07-27 12:33:02 -03:00
layout-error.stderr Make all tests use type_alias_impl_trait feature instead of min 2021-07-27 12:33:02 -03:00
live-upvar-across-yield.rs
match-bindings.rs
match-bindings.stderr
metadata-sufficient-for-layout.rs Make all tests use type_alias_impl_trait feature instead of min 2021-07-27 12:33:02 -03:00
metadata-sufficient-for-layout.stderr Make all tests use type_alias_impl_trait feature instead of min 2021-07-27 12:33:02 -03:00
nested_generators.rs
niche-in-generator.rs
non-static-is-unpin.rs
not-send-sync.rs
not-send-sync.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
overlap-locals.rs
panic-drops-resume.rs
panic-drops.rs
panic-safe.rs
partial-initialization-across-yield.rs
partial-initialization-across-yield.stderr
pattern-borrow.rs
pattern-borrow.stderr
pin-box-generator.rs
reborrow-mut-upvar.rs
reborrow-mut-upvar.stderr
ref-escapes-but-not-over-yield.rs
ref-escapes-but-not-over-yield.stderr
resume-after-return.rs
resume-arg-late-bound.nll.stderr Report nicer errors for HRTB NLL errors from queries 2021-08-15 09:11:01 +02:00
resume-arg-late-bound.rs
resume-arg-late-bound.stderr
resume-arg-size.rs
resume-live-across-yield.rs
retain-resume-ref.rs
retain-resume-ref.stderr
size-moved-locals.rs
sized-yield.rs
sized-yield.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
smoke-resume-args.rs
smoke.rs
static-generators.rs
static-mut-reference-across-yield.rs
static-not-unpin.rs
static-not-unpin.stderr Use note to point at bound introducing requirement 2021-08-16 17:47:22 +00:00
static-reference-across-yield.rs
too-live-local-in-immovable-gen.rs
too-live-local-in-immovable-gen.stderr
too-many-parameters.rs
too-many-parameters.stderr
type-mismatch-error.rs
type-mismatch-error.stderr
type-mismatch-signature-deduction.rs
type-mismatch-signature-deduction.stderr
xcrate-reachable.rs
xcrate.rs
yield-in-args-rev.rs
yield-in-args-rev.stderr
yield-in-args.rs
yield-in-args.stderr
yield-in-box.rs
yield-in-box.stderr
yield-in-const.rs
yield-in-const.stderr
yield-in-function.rs
yield-in-function.stderr
yield-in-initializer.rs
yield-in-initializer.stderr
yield-in-static.rs
yield-in-static.stderr
yield-outside-generator-issue-78653.rs
yield-outside-generator-issue-78653.stderr
yield-subtype.rs
yield-subtype.stderr
yield-while-iterating.rs
yield-while-iterating.stderr
yield-while-local-borrowed.rs
yield-while-local-borrowed.stderr
yield-while-ref-reborrowed.rs
yield-while-ref-reborrowed.stderr
yielding-in-match-guards.rs