rust/tests
Matthias Krüger 333c63b9fc
Rollup merge of #128377 - veera-sivarajan:fix-128249, r=davidtwco
Fix ICE Caused by Incorrectly Delaying E0107

Fixes  #128249

For the following code:
```rust
trait Foo<T> {}
impl Foo<T: Default> for u8 {}
```
#126054 added some logic to delay emitting E0107 as the names of associated type `T` in the impl header and generic parameter `T` in `trait Foo` match.

But it failed to ensure whether such unexpected associated type bounds are coming from a impl block header. This caused an ICE as the compiler was delaying E0107 for code like:
```rust
trait Trait<Type> {
    type Type;

    fn method(&self) -> impl Trait<Type: '_>;
}
```
because it assumed the associated type bound `Type: '_` is for the generic parameter `Type` in `trait Trait` since the names are same.

This PR adds a check to ensure that E0107 is delayed only in the context of impl block header.
2024-08-06 20:23:39 +02:00
..
assembly Match LLVM ABI in extern "C" functions for f128 on Windows 2024-07-30 20:23:33 +01:00
auxiliary
codegen Rollup merge of #128500 - clubby789:122600-test, r=Mark-Simulacrum 2024-08-05 05:40:21 +02:00
codegen-units Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix" 2024-08-03 07:57:31 -04:00
coverage Finish blessing coverage/mcdc tests after LLVM 19 upgrade 2024-08-01 13:36:50 +10:00
coverage-run-rustdoc
crashes Normalize when equating dyn tails in MIR borrowck 2024-08-05 14:28:06 -04:00
debuginfo Add Natvis visualiser and debuginfo tests for f16 2024-07-09 03:47:50 +01:00
incremental Do not normalize constants eagerly. 2024-07-31 00:59:12 +00:00
mir-opt custom MIR: add support for tail calls 2024-08-05 18:23:14 +02:00
pretty
run-make rewrite cdylib-dylib-linkage to rmake 2024-08-05 10:39:17 -04:00
run-pass-valgrind
rustdoc Rollup merge of #127921 - spastorino:stabilize-unsafe-extern-blocks, r=compiler-errors 2024-08-03 20:51:51 +02:00
rustdoc-gui Rollup merge of #128339 - GuillaumeGomez:click-code-example, r=notriddle 2024-07-30 04:31:55 +02:00
rustdoc-js Add test for Self not being a generic in search index 2024-08-04 12:49:28 -07:00
rustdoc-js-std
rustdoc-json Rollup merge of #128385 - its-the-shrimp:fix_114039, r=aDotInTheVoid 2024-08-05 18:36:01 +02:00
rustdoc-ui On short error format, append primary span label to message 2024-08-06 04:08:10 +00:00
ui Rollup merge of #128377 - veera-sivarajan:fix-128249, r=davidtwco 2024-08-06 20:23:39 +02:00
ui-fulldeps Bless test fallout 2024-08-03 07:57:31 -04:00
COMPILER_TESTS.md