Skip to content

Commit 746c9b4

Browse files
committed
Revert "Fix list length"
This reverts commit e2bba07.
1 parent 5a93f38 commit 746c9b4

28 files changed

+1
-225
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
18191819
}
18201820

18211821
let len = impl_candidates.len();
1822-
let end = if impl_candidates.len() <= 9 { impl_candidates.len() } else { 8 };
1822+
let end = if impl_candidates.len() <= 5 { impl_candidates.len() } else { 4 };
18231823

18241824
let normalize = |candidate| {
18251825
self.tcx.infer_ctxt().enter(|ref infcx| {

src/test/ui/binop/binop-mul-i32-f32.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ LL | x * y
1010
<&i32 as Mul<&i32>>
1111
<i32 as Mul<&i32>>
1212
<i32 as Mul>
13-
<&'a f32 as Mul<f32>>
14-
<&'a f64 as Mul<f64>>
15-
<&'a i128 as Mul<i128>>
16-
<&'a i16 as Mul<i16>>
1713
and 49 others
1814

1915
error: aborting due to previous error

src/test/ui/binop/issue-77910-1.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ LL | assert_eq!(foo, y);
2121
<extern "C" fn(A) -> Ret as Debug>
2222
<extern "C" fn(A, ...) -> Ret as Debug>
2323
<extern "C" fn(A, B) -> Ret as Debug>
24-
<extern "C" fn(A, B, ...) -> Ret as Debug>
25-
<extern "C" fn(A, B, C) -> Ret as Debug>
26-
<extern "C" fn(A, B, C, ...) -> Ret as Debug>
27-
<extern "C" fn(A, B, C, D) -> Ret as Debug>
2824
and 68 others
2925
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
3026

src/test/ui/binop/shift-various-bad-types.stderr

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ LL | 22 >> p.char;
1010
<&'a i128 as Shr<i16>>
1111
<&'a i128 as Shr<i32>>
1212
<&'a i128 as Shr<i64>>
13-
<&'a i128 as Shr<i8>>
14-
<&'a i128 as Shr<isize>>
15-
<&'a i128 as Shr<u128>>
16-
<&'a i128 as Shr<u16>>
1713
and 568 others
1814

1915
error[E0277]: no implementation for `{integer} >> &str`
@@ -28,10 +24,6 @@ LL | 22 >> p.str;
2824
<&'a i128 as Shr<i16>>
2925
<&'a i128 as Shr<i32>>
3026
<&'a i128 as Shr<i64>>
31-
<&'a i128 as Shr<i8>>
32-
<&'a i128 as Shr<isize>>
33-
<&'a i128 as Shr<u128>>
34-
<&'a i128 as Shr<u16>>
3527
and 568 others
3628

3729
error[E0277]: no implementation for `{integer} >> &Panolpy`
@@ -46,10 +38,6 @@ LL | 22 >> p;
4638
<&'a i128 as Shr<i16>>
4739
<&'a i128 as Shr<i32>>
4840
<&'a i128 as Shr<i64>>
49-
<&'a i128 as Shr<i8>>
50-
<&'a i128 as Shr<isize>>
51-
<&'a i128 as Shr<u128>>
52-
<&'a i128 as Shr<u16>>
5341
and 568 others
5442

5543
error[E0308]: mismatched types

src/test/ui/const-generics/exhaustive-value.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ LL | <() as Foo<N>>::test()
99
<() as Foo<100_u8>>
1010
<() as Foo<101_u8>>
1111
<() as Foo<102_u8>>
12-
<() as Foo<103_u8>>
13-
<() as Foo<104_u8>>
14-
<() as Foo<105_u8>>
15-
<() as Foo<106_u8>>
1612
and 248 others
1713

1814
error: aborting due to previous error

src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ LL | = [0; (i8::MAX + 1u8) as usize];
1616
<&i8 as Add<&i8>>
1717
<i8 as Add<&i8>>
1818
<i8 as Add>
19-
<&'a f32 as Add<f32>>
20-
<&'a f64 as Add<f64>>
21-
<&'a i128 as Add<i128>>
22-
<&'a i16 as Add<i16>>
2319
and 48 others
2420

2521
error: aborting due to 2 previous errors

src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ LL | : [u32; (i8::MAX as i8 + 1u8) as usize]
1616
<&i8 as Add<&i8>>
1717
<i8 as Add<&i8>>
1818
<i8 as Add>
19-
<&'a f32 as Add<f32>>
20-
<&'a f64 as Add<f64>>
21-
<&'a i128 as Add<i128>>
22-
<&'a i16 as Add<i16>>
2319
and 48 others
2420

2521
error[E0604]: only `u8` can be cast as `char`, not `i8`

src/test/ui/consts/too_generic_eval_ice.stderr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ LL | [5; Self::HOST_SIZE] == [6; 0]
2626
<&[T] as PartialEq<Vec<U, A>>>
2727
<&mut [B] as PartialEq<[A; N]>>
2828
<&mut [T] as PartialEq<Vec<U, A>>>
29-
<[A; N] as PartialEq<&[B]>>
30-
<[A; N] as PartialEq<&mut [B]>>
31-
<[A; N] as PartialEq<[B; N]>>
32-
<[A; N] as PartialEq<[B]>>
3329
and 3 others
3430

3531
error: aborting due to 3 previous errors

src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ LL | f1.foo(1usize);
99
<Bar as Foo<i32>>
1010
<Bar as Foo<i8>>
1111
<Bar as Foo<u16>>
12-
<Bar as Foo<u32>>
13-
<Bar as Foo<u8>>
1412

1513
error: aborting due to previous error
1614

src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ LL | Foo::<i32>::bar(&1i8);
1111
<i8 as Foo<u16>>
1212
<i8 as Foo<u32>>
1313
<i8 as Foo<u64>>
14-
<i8 as Foo<u8>>
15-
<u8 as Foo<bool>>
16-
<u8 as Foo<u16>>
17-
<u8 as Foo<u32>>
18-
<u8 as Foo<u64>>
1914

2015
error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
2116
--> $DIR/issue-39802-show-5-trait-impls.rs:25:21
@@ -30,11 +25,6 @@ LL | Foo::<i32>::bar(&1u8);
3025
<u8 as Foo<u16>>
3126
<u8 as Foo<u32>>
3227
<u8 as Foo<u64>>
33-
<i8 as Foo<bool>>
34-
<i8 as Foo<u16>>
35-
<i8 as Foo<u32>>
36-
<i8 as Foo<u64>>
37-
<i8 as Foo<u8>>
3828

3929
error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
4030
--> $DIR/issue-39802-show-5-trait-impls.rs:26:21
@@ -49,8 +39,6 @@ LL | Foo::<i32>::bar(&true);
4939
<bool as Foo<i8>>
5040
<bool as Foo<u16>>
5141
<bool as Foo<u32>>
52-
<bool as Foo<u64>>
53-
<bool as Foo<u8>>
5442

5543
error: aborting due to 3 previous errors
5644

0 commit comments

Comments
 (0)