rust/tests/ui/generator
Matthias Krüger 9b0abe3537
Rollup merge of #115311 - dtolnay:usearcself, r=compiler-errors
Revert "Suggest using `Arc` on `!Send`/`!Sync` types"

Closes https://github.com/rust-lang/rust/issues/114687. This is a clean revert of https://github.com/rust-lang/rust/pull/88936 + https://github.com/rust-lang/rust/pull/115210. The suggestion to Arc\<{Self}\> when Self does not implement Send is *always* wrong.

https://github.com/rust-lang/rust/pull/114842 is considering a way to make a more refined suggestion.
2023-08-28 19:53:57 +02:00
..
auxiliary
print Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
addassign-yield.rs
async-generator-issue-67158.rs
async-generator-issue-67158.stderr
auto-trait-regions.drop_tracking_mir.stderr
auto-trait-regions.drop_tracking.stderr
auto-trait-regions.no_drop_tracking.stderr
auto-trait-regions.rs update auto trait handling 2023-07-06 11:37:19 +02:00
borrow-in-tail-expr.rs
borrowing.drop_tracking_mir.stderr
borrowing.drop_tracking.stderr
borrowing.no_drop_tracking.stderr
borrowing.rs
clone-impl-async.rs
clone-impl-async.stderr
clone-impl-static.rs
clone-impl-static.stderr
clone-impl.rs
clone-impl.stderr
conditional-drop.rs
control-flow.rs
derived-drop-parent-expr.rs
discriminant.rs
drop-and-replace.rs
drop-control-flow.rs
drop-env.rs Rename drop_copy lint to dropping_copy_types 2023-05-21 13:37:32 +02:00
drop-track-addassign-yield.rs
drop-tracking-error-body.rs Handle error body when in generator layout 2023-05-13 16:45:19 +01:00
drop-tracking-error-body.stderr Handle error body when in generator layout 2023-05-13 16:45:19 +01:00
drop-tracking-parent-expression.drop_tracking_mir.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
drop-tracking-parent-expression.drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
drop-tracking-parent-expression.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
drop-tracking-parent-expression.rs
drop-tracking-yielding-in-match-guards.rs
drop-yield-twice.rs
drop-yield-twice.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
dropck-resume.rs
dropck-resume.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
dropck.rs
dropck.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
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
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-52304.rs
issue-52398.rs
issue-52398.stderr
issue-53548-1.rs
issue-53548.rs
issue-57017.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
issue-57017.rs Rename drop_ref lint to dropping_references 2023-05-21 14:16:41 +02:00
issue-57084.rs
issue-57084.stderr
issue-57478.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
issue-57478.rs
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.drop_tracking_mir.stderr
issue-68112.drop_tracking.stderr
issue-68112.no_drop_tracking.stderr
issue-68112.rs
issue-69017.rs
issue-69039.rs
issue-87142.rs
issue-88653.rs
issue-88653.stderr
issue-91477.rs
issue-91477.stderr
issue-93161.rs
issue-102645.rs
issue-102645.stderr
issue-105084.drop_tracking_mir.stderr
issue-105084.rs
issue-110929-generator-conflict-error-ice.rs Fix an ICE in conflict errors diagnostics 2023-04-28 17:37:56 +00:00
issue-110929-generator-conflict-error-ice.stderr Fix an ICE in conflict errors diagnostics 2023-04-28 17:37:56 +00:00
issue-113279.rs abi: unsized field in union - assert to delay bug 2023-07-25 15:50:39 +01:00
issue-113279.stderr abi: unsized field in union - assert to delay bug 2023-07-25 15:50:39 +01:00
iterator-count.rs
layout-error.rs More precisely detect cycle errors from type_of on opaque 2023-08-27 22:03:16 +00:00
layout-error.stderr More precisely detect cycle errors from type_of on opaque 2023-08-27 22:03:16 +00:00
live-upvar-across-yield.rs
match-bindings.rs
match-bindings.stderr
metadata-sufficient-for-layout.rs
metadata-sufficient-for-layout.stderr
nested_generators.rs
niche-in-generator.rs
non-static-is-unpin.rs Rename drop_copy lint to dropping_copy_types 2023-05-21 13:37:32 +02:00
not-send-sync.drop_tracking_mir.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
not-send-sync.drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
not-send-sync.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
not-send-sync.rs
overlap-locals.rs
panic-drops-resume.rs
panic-drops.rs
panic-safe.rs
parent-expression.drop_tracking_mir.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
parent-expression.drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
parent-expression.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
parent-expression.rs
partial-drop.drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
partial-drop.no_drop_tracking.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
partial-drop.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
ref-upvar-not-send.rs Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
ref-upvar-not-send.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
reinit-in-match-guard.rs
resume-after-return.rs
resume-arg-late-bound.rs
resume-arg-late-bound.stderr
resume-arg-size.rs Rename drop_copy lint to dropping_copy_types 2023-05-21 13:37:32 +02:00
resume-live-across-yield.rs
retain-resume-ref.drop_tracking_mir.stderr
retain-resume-ref.drop_tracking.stderr
retain-resume-ref.no_drop_tracking.stderr
retain-resume-ref.rs
size-moved-locals.rs
sized-yield.rs
sized-yield.stderr
smoke-resume-args.rs
smoke.rs
static-generators.rs
static-mut-reference-across-yield.rs
static-not-unpin.current.stderr
static-not-unpin.next.stderr
static-not-unpin.rs
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
unresolved-ct-var-drop-tracking.rs
unresolved-ct-var-drop-tracking.stderr Tweak await span 2023-04-27 17:18:11 +00:00
unresolved-ct-var.rs
unresolved-ct-var.stderr Tweak await span 2023-04-27 17:18:11 +00:00
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-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