rust/src/test/ui/self
Jonas Schievink 9596e34ad4
Rollup merge of #76765 - guswynn:async_return, r=tmandry
Make it more clear what an about async fn's returns when referring to what it returns

see #76547

This is *likely* not the ONLY place that this happens to be unclear, but we can move this fn to rustc_middle or something like that and reuse it if need be, to apply it to more diagnostics

One outstanding question I have is, if the fn returns (), should I make the message more clear (what about `fn f()` vs `fn f() -> ()`, can you tell those apart in the hir?)

R? `@tmandry`

`@rustbot` modify labels +A-diagnostics +T-compiler
2020-11-10 14:45:09 +01:00
..
auxiliary
elision Make it more clear when complaining about async fn's return types 2020-10-17 15:57:47 -07:00
arbitrary-self-types-not-object-safe.curr.stderr review comments 2020-10-20 09:26:15 -07:00
arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr review comments 2020-10-20 09:26:15 -07:00
arbitrary-self-types-not-object-safe.rs Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
arbitrary-self-types-not-object-safe.stderr Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
arbitrary_self_types_nested.rs Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
arbitrary_self_types_pin_lifetime-async.rs
arbitrary_self_types_pin_lifetime.rs
arbitrary_self_types_pin_lifetime_impl_trait-async.nll.stderr Change wording for lifetime suggestion for opaque types from `constraint` to `bound` 2019-12-31 12:13:35 +01:00
arbitrary_self_types_pin_lifetime_impl_trait-async.rs Further tweak wording of E0759 and introduce E0767 2020-07-22 12:25:54 -07:00
arbitrary_self_types_pin_lifetime_impl_trait-async.stderr Further tweak wording of E0759 and introduce E0767 2020-07-22 12:25:54 -07:00
arbitrary_self_types_pin_lifetime_impl_trait.nll.stderr compiletest: error if `compile-fail` header in ui test. 2020-02-02 02:08:30 -05:00
arbitrary_self_types_pin_lifetime_impl_trait.rs Further tweak wording of E0759 and introduce E0767 2020-07-22 12:25:54 -07:00
arbitrary_self_types_pin_lifetime_impl_trait.stderr Further tweak wording of E0759 and introduce E0767 2020-07-22 12:25:54 -07:00
arbitrary_self_types_pin_lifetime_mismatch-async.nll.stderr update tests 2020-03-12 15:47:36 -05:00
arbitrary_self_types_pin_lifetime_mismatch-async.rs
arbitrary_self_types_pin_lifetime_mismatch-async.stderr Make it more clear when complaining about async fn's return types 2020-10-17 15:57:47 -07:00
arbitrary_self_types_pin_lifetime_mismatch.nll.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
arbitrary_self_types_pin_lifetime_mismatch.rs compiletest: error if `compile-fail` header in ui test. 2020-02-02 02:08:30 -05:00
arbitrary_self_types_pin_lifetime_mismatch.stderr compiletest: error if `compile-fail` header in ui test. 2020-02-02 02:08:30 -05:00
arbitrary_self_types_pointers_and_wrappers.rs
arbitrary_self_types_raw_pointer_struct.rs
arbitrary_self_types_raw_pointer_trait.rs
arbitrary_self_types_silly.rs
arbitrary_self_types_stdlib_pointers.rs
arbitrary_self_types_struct.rs Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
arbitrary_self_types_trait.rs Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
arbitrary_self_types_unsized_struct.rs Stabilize nested self receivers 2019-11-26 13:35:33 -08:00
builtin-superkinds-self-type.rs
by-value-self-in-mut-slot.rs
explicit-self-closures.rs
explicit-self-generic.rs
explicit-self-objects-uniq.rs
explicit-self.rs
explicit_self_xcrate_exe.rs
move-self.rs
object-safety-sized-self-by-value-self.rs
object-safety-sized-self-generic-method.rs
object-safety-sized-self-return-Self.rs
point-at-arbitrary-self-type-method.rs
point-at-arbitrary-self-type-method.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
point-at-arbitrary-self-type-trait-method.rs
point-at-arbitrary-self-type-trait-method.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
self-impl-2.rs
self-impl.rs
self-impl.stderr
self-in-mut-slot-default-method.rs
self-in-mut-slot-immediate-value.rs
self-in-typedefs.rs stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union' 2020-10-16 11:33:33 +02:00
self-infer.rs Revert "Backport only: avoid ICE on bad placeholder type" 2020-02-27 15:59:08 -08:00
self-infer.stderr Revert "Backport only: avoid ICE on bad placeholder type" 2020-02-27 15:59:08 -08:00
self-re-assign.rs
self-shadowing-import.rs
self-type-param.rs
self-vs-path-ambiguity.rs
self-vs-path-ambiguity.stderr parser: recover on `&'lifetime mut $pat`. 2019-12-13 02:36:25 +01:00
self_lifetime-async.rs
self_lifetime.rs
self_type_keyword-2.rs
self_type_keyword-2.stderr
self_type_keyword.rs
self_type_keyword.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
string-self-append.rs
suggest-self-2.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-self-2.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-self.rs
suggest-self.stderr Reword incorrect `self` token suggestion 2020-07-09 13:01:20 -07:00
ufcs-explicit-self.rs
uniq-self-in-mut-slot.rs
where-for-self.rs