rust/src/test
Dylan DPC 2c14bc3b55
Rollup merge of #99741 - compiler-errors:copy-impl-impl-generics, r=fee1-dead
Use `impl`'s generics when suggesting fix on bad `impl Copy`

See the UI test for a more complicated example, but we weren't correctly suggesting to add bounds given a manual `impl` whose generics didn't match the struct generics.

```rust
#[derive(Clone)]
struct Wrapper<T>(T);

impl<S> Copy for Wrapper<S> {}
```

Coincidentally this fix didn't cause any regressions for `derive(Copy)` impls, I think because those use the same spans in the impl generics as the struct generics, so the machinery still applies the same change.
2022-07-31 17:36:41 +05:30
..
assembly adapt assembly/static-relocation-model test for LLVM change 2022-07-20 12:56:42 +00:00
auxiliary
codegen Make CFI tests opaque pointers compatible 2022-07-27 16:37:36 +02:00
codegen-units Fix/bless tests broken by DSE 2022-05-24 22:50:21 -04:00
debuginfo Use revision support to remove near identical debuginfo test. 2022-07-20 00:23:38 -07:00
incremental Rollup merge of #98901 - davidtwco:split-dwarf-incr-workproduct, r=michaelwoerister 2022-07-07 18:06:52 +05:30
mir-opt bless mir opt tests 2022-07-28 14:24:44 +02:00
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Auto merge of #99467 - BelovDV:add_option_link_arg, r=petrochenkov 2022-07-29 15:36:52 +00:00
run-make-fulldeps Move coverage tests from run-make-fulldeps to run-make 2022-07-28 14:33:29 +02:00
run-pass-valgrind Change enum->int casts to not go through MIR casts. 2022-06-30 07:47:07 +00:00
rustdoc Rollup merge of #99700 - est31:rustdoc_layout_heading, r=GuillaumeGomez 2022-07-27 11:52:54 +09:00
rustdoc-gui Rollup merge of #99810 - GuillaumeGomez:fix-settings-slider-small-width, r=notriddle 2022-07-28 16:38:31 +05:30
rustdoc-js rustdoc: also index raw pointers 2022-05-31 11:21:55 -07:00
rustdoc-js-std Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha 2022-05-11 13:16:31 +09:00
rustdoc-json Add tests for JSON non-inlining 2022-07-16 13:39:38 +02:00
rustdoc-ui Rollup merge of #99873 - notriddle:notriddle/invalid-html-tags-webcomponents, r=GuillaumeGomezp 2022-07-30 22:50:57 +02:00
ui Rollup merge of #99741 - compiler-errors:copy-impl-impl-generics, r=fee1-dead 2022-07-31 17:36:41 +05:30
ui-fulldeps lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
COMPILER_TESTS.md