rust/src/test
Mazdak Farrokhzad faf2e8087c
Rollup merge of #64959 - davidtwco:issue-64252-self-type-help, r=Centril,estebank
syntax: improve parameter without type suggestions

Fixes #64252.

This PR improves the suggestions provided when function parameters
do not have types:

- A new suggestion is added for arbitrary self types, which suggests
adding `self: ` before the type.

- Existing suggestions are now provided when a `<` is found where a `:`
was expected (previously only `,` and `)` or trait items), this gives
suggestions in the case where the unnamed parameter type is generic
in a free function.

- The suggestion that a type name be provided (e.g. `fn foo(HashMap<u32>)`
-> `fn foo(HashMap: TypeName<u32>)`) will no longer occur when a `<` was
found instead of `:`.

- The ident will not be used for recovery when a `<` was found instead
of `:`.

r? @Centril
cc @estebank @yoshuawuyts
2019-10-03 04:08:14 +02:00
..
assembly
auxiliary rustc_target: avoid negative register counts in the SysV x86_64 ABI. 2019-07-05 13:24:25 +03:00
codegen codegen: use "_N" (like for other locals) instead of "argN", for argument names. 2019-09-13 19:25:05 +03:00
codegen-units rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
compile-fail rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
debuginfo fix debuginfo/issue22656 with LLDB 8 2019-09-18 10:42:55 -04:00
incremental Ban non-extern rust intrinsics 2019-09-14 11:47:02 -04:00
mir-opt Allow reading non-mutable statics in const prop 2019-09-28 07:51:38 -04:00
pretty Print visibility of macro items 2019-09-15 10:22:13 +01:00
run-fail [const-prop] Replace CheckedBinaryOp handling with use of InterpCx 2019-09-27 20:11:12 -04:00
run-make Add very simple edition check to tidy; and add missing edition = 2018s. 2019-07-30 01:56:03 +08:00
run-make-fulldeps Remove tx_to_llvm_workers from TyCtxt 2019-09-25 16:57:27 -04:00
run-pass-valgrind Remove no-prefer-dynamic from valgrind tests 2019-09-01 10:09:45 -04:00
rustdoc rustc: rely on c_variadic == true instead of CVarArgs in HIR/Ty fn signatures. 2019-09-28 17:39:00 +03:00
rustdoc-js Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-js-std Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-ui rustdoc: fix diagnostic with mixed code block styles 2019-09-07 12:21:32 -07:00
rustfix
ui Rollup merge of #64959 - davidtwco:issue-64252-self-type-help, r=Centril,estebank 2019-10-03 04:08:14 +02:00
ui-fulldeps remove indexed_vec re-export from rustc_data_structures 2019-09-29 16:48:31 +00:00
COMPILER_TESTS.md doc: fix broken sentence 2019-08-06 02:36:59 +02:00