rust/src/test
bors a609fb45ef Auto merge of #80547 - lqd:const_generics_defaults, r=varkor
In which we start to parse const generics defaults

As discussed in this [zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/const.20generic.20defaults), this PR extracts the parsing parts from `@JulianKnodt's` PR #75384 for a better user-experience using the newly stabilized `min_const_generics` (albeit temporary) as shown in #80507: trying to use default values on const generics currently results in parse errors, as if the user didn't use the correct syntax (which is somewhat true but also misleading).

This PR extracts (and slightly modifies in a couple places) `@JulianKnodt's` parsing code (with attribution if I've done everything correctly), AST and HIR changes, and feature gate setup.

This feature is now marked as "incomplete" and thus will also print out the expected "const generics default values are unstable" error instead of a syntax error. Note that, as I've only extracted the parsing part, the actual feature will not work at all if enabled. There will be ICEs, and inference errors on the const generics default values themselves.

Fixes #80507.

Once this merges, I'll:
- modify the const generics tracking issue to refer to the `const_generics_defaults` gate rather than the older temporary name it uses there.
- create the GH `F-const_generics_defaults` label

r? `@varkor`
2021-01-01 13:17:42 +00:00
..
assembly Add wasm32 support to inline asm 2020-12-01 12:18:21 -06:00
auxiliary
codegen Remove pointer comparison from slice equality 2020-12-26 06:43:51 +00:00
codegen-units simplify-locals: Remove unused assignments regardless of rvalue kind 2020-10-26 10:48:28 +01:00
debuginfo Improvements to NatVis support 2020-12-28 12:14:49 -08:00
incremental Disable the constant debuginfo promotion pass by default 2020-12-14 19:56:10 -05:00
mir-opt Make forget intrinsic safe 2020-12-29 00:00:00 +00:00
pretty Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
run-make Auto merge of #78122 - fusion-engineering-forks:fmt-write-bounds-check, r=Mark-Simulacrum 2020-11-29 23:14:40 +00:00
run-make-fulldeps Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
run-pass-valgrind Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
rustdoc Rollup merge of #80368 - camelid:rustdoc-succinct-vis, r=jyn514 2020-12-31 22:20:49 +01:00
rustdoc-js Add more rustdoc-js test cases 2020-12-03 14:11:37 -08:00
rustdoc-js-std
rustdoc-json Use true ID for def_id. 2020-12-05 22:38:57 +00:00
rustdoc-ui Auto merge of #80267 - 0urobor0s:ouro/61592, r=jyn514 2020-12-31 09:07:52 +00:00
rustfix
ui Auto merge of #80547 - lqd:const_generics_defaults, r=varkor 2021-01-01 13:17:42 +00:00
ui-fulldeps Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
COMPILER_TESTS.md