Skip to content

Commit 7a757b7

Browse files
Apply suggestions from code review
Co-authored-by: lcnr <[email protected]>
1 parent f7ee72a commit 7a757b7

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

tests/ui/closures/deduce-from-object-supertrait.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//@ check-pass
22

3+
// This test checks that we look at consider the super traits of trait objects
4+
// when deducing closure signatures.
35
trait Foo: Fn(Bar) {}
46
impl<T> Foo for T where T: Fn(Bar) {}
57

tests/ui/dyn-compatibility/multiple-supers-should-work.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//@ check-pass
22

3+
// We previously incorrectly deduplicated the list of projection bounds
4+
// of trait objects, causing us to incorrectly reject this code, cc #136458.
35
trait Sup<T> {
46
type Assoc;
57
}

tests/ui/traits/object/crash-due-to-projections-modulo-norm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ check-pass
22

3+
// Regression test for #126944.
34
// Step 1: Create two names for a single type: `Thing` and `AlsoThing`
45

56
struct Thing;

tests/ui/traits/object/incomplete-multiple-super-projection.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Regression test for #133361.
12
trait Sup<T> {
23
type Assoc;
34
}

0 commit comments

Comments
 (0)