We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d65d80 commit 3b15424Copy full SHA for 3b15424
tests/ui/const-generics/occurs-check/unused-substs-3.stderr
@@ -2,9 +2,14 @@ error[E0308]: mismatched types
2
--> $DIR/unused-substs-3.rs:16:9
3
|
4
LL | t = foo;
5
- | ^^^- help: try using a conversion method: `.to_vec()`
6
- | |
7
- | cyclic type of infinite size
+ | ^^^ cyclic type of infinite size
+ |
+help: try using a conversion method
8
9
+LL | t = foo.to_vec();
10
+ | +++++++++
11
+LL | t = foo.to_vec_co();
12
+ | ++++++++++++
13
14
error: aborting due to previous error
15
tests/ui/const-generics/occurs-check/unused-substs-5.stderr
--> $DIR/unused-substs-5.rs:15:9
LL | x = q::<_, N>(x);
- | ^^^^^^^^^^^^- help: try using a conversion method: `.to_vec()`
+ | ^^^^^^^^^^^^ cyclic type of infinite size
+LL | x = q::<_, N>(x).to_vec();
+LL | x = q::<_, N>(x).to_vec_co();
tests/ui/consts/too_generic_eval_ice.stderr
@@ -23,9 +23,9 @@ LL | [5; Self::HOST_SIZE] == [6; 0]
23
= help: the trait `PartialEq<[{integer}; 0]>` is not implemented for `[{integer}; Self::HOST_SIZE]`
24
= help: the following other types implement trait `PartialEq<Rhs>`:
25
<&[B] as PartialEq<[A; N]>>
26
- <&[T] as PartialEq<Vec<U, A>>>
+ <&[T] as PartialEq<Vec<U, A, CO_ALLOC_PREF>>>
27
<&mut [B] as PartialEq<[A; N]>>
28
- <&mut [T] as PartialEq<Vec<U, A>>>
+ <&mut [T] as PartialEq<Vec<U, A, CO_ALLOC_PREF>>>
29
<[A; N] as PartialEq<&[B]>>
30
<[A; N] as PartialEq<&mut [B]>>
31
<[A; N] as PartialEq<[B; N]>>
tests/ui/hygiene/panic-location.run.stderr
@@ -1,2 +1,2 @@
1
-thread 'main' panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:525:5
+thread 'main' panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:600:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
tests/ui/suggestions/deref-path-method.rs
@@ -1,6 +1,6 @@
fn main() {
let vec = Vec::new();
Vec::contains(&vec, &0);
- //~^ ERROR no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
+ //~^ ERROR no function or associated item named `contains` found for struct `Vec<_, _, _>` in the current scope
//~| HELP the function `contains` is implemented on `[_]`
}
tests/ui/suggestions/deref-path-method.stderr
@@ -1,8 +1,8 @@
-error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
+error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _, _>` in the current scope
--> $DIR/deref-path-method.rs:3:10
LL | Vec::contains(&vec, &0);
- | ^^^^^^^^ function or associated item not found in `Vec<_, _>`
+ | ^^^^^^^^ function or associated item not found in `Vec<_, _, _>`
help: the function `contains` is implemented on `[_]`
tests/ui/type/type-check/point-at-inference-2.stderr
@@ -6,8 +6,8 @@ LL | bar(v);
| |
| arguments to this function are incorrect
- = note: expected struct `Vec<i32>`
- found struct `Vec<&{integer}>`
+ = note: expected struct `Vec<i32, _>`
+ found struct `Vec<&{integer}, _>`
note: function defined here
--> $DIR/point-at-inference-2.rs:1:4
@@ -25,8 +25,8 @@ LL | bar(v);
- found struct `Vec<&i32>`
+ found struct `Vec<&i32, _>`
32
@@ -43,8 +43,8 @@ LL | bar(v);
43
44
45
46
47
48
49
50
tests/ui/type/type-check/point-at-inference.stderr
@@ -9,8 +9,8 @@ LL | bar(foo);
--> $DIR/point-at-inference.rs:2:4
16
tests/ui/typeck/conversion-methods.stderr
@@ -39,6 +39,8 @@ help: try using a conversion method
39
40
LL | let _prove_piercing_earnest: Vec<usize> = (&[1, 2, 3]).to_vec();
41
| + ++++++++++
42
+LL | let _prove_piercing_earnest: Vec<usize> = (&[1, 2, 3]).to_vec_co();
+ | + +++++++++++++
error: aborting due to 4 previous errors
0 commit comments