rust/src/test
Matthias Krüger df11395a55
Rollup merge of #101040 - danielhenrymantilla:no-bounds-for-default-annotated-derive, r=joshtriplett
Fix `#[derive(Default)]` on a generic `#[default]` enum adding unnecessary `Default` bounds

That is, given something like:

```rs
// #[default] on a generic enum does not add `Default` bounds to the type params.
#[derive(Default)]
enum MyOption<T> {
    #[default]
    None,
    Some(T),
}
```

then `MyOption<T> : Default`_as currently implemented_ only holds when `T : Default`, as reported by ```@5225225``` [over Zulip](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/.23.5Bderive.28Default.29.5D.20for.20enums.20with.20fields).

This is contrary to [what the accepted RFC proposes](https://rust-lang.github.io/rfcs/3107-derive-default-enum.html#generated-bounds) (_i.e._, that `T` be allowed not to be itself `Default`), and indeed seems to be a rather unnecessary limitation.
2022-10-03 20:58:55 +02:00
..
assembly Enable inline stack probes on X86 with LLVM 16 2022-09-29 19:49:23 -07:00
auxiliary
codegen Auto merge of #102503 - cuviper:x86-stack-probes, r=nagisa 2022-10-03 02:09:05 +00:00
codegen-units Bless cgu test. 2022-09-23 18:42:14 +02:00
debuginfo Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
incremental Stabilize bench_black_box 2022-09-27 17:38:51 +02:00
mir-opt Rollup merge of #101996 - b-naber:binder-print, r=lcnr 2022-09-26 19:19:20 +02:00
pretty address review 2022-09-26 14:21:39 +02:00
run-make Auto merge of #101806 - BelovDV:issue-fix-fn-find_library, r=petrochenkov 2022-09-20 07:10:18 +00:00
run-make-fulldeps rustdoc: give .line-number / .line-numbers meaningful names 2022-09-26 11:48:03 -07:00
run-pass-valgrind
rustdoc Rollup merge of #102525 - notriddle:notriddle/array-link, r=GuillaumeGomez,jsha 2022-10-02 03:16:39 +02:00
rustdoc-gui Auto merge of #102237 - GuillaumeGomez:sidebar-links-color, r=notriddle 2022-10-01 08:14:25 +00:00
rustdoc-js
rustdoc-js-std Update asrawfd.js. 2022-08-29 08:31:42 -07:00
rustdoc-json Rustdoc-Json: List impls for primitives 2022-09-26 18:06:48 +01:00
rustdoc-ui bless rustdoc-ui 2022-10-01 10:03:06 +00:00
ui Rollup merge of #101040 - danielhenrymantilla:no-bounds-for-default-annotated-derive, r=joshtriplett 2022-10-03 20:58:55 +02:00
ui-fulldeps ui-fulldeps: adopt to the new rustc lint API 2022-10-01 10:03:07 +00:00
COMPILER_TESTS.md