Skip to content

Commit 25cf71e

Browse files
committedJan 5, 2023
review comments: reword
1 parent fee334c commit 25cf71e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎compiler/rustc_hir_typeck/src/demand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
334334
err.span_label(
335335
arg.span,
336336
&format!(
337-
"this is of type `{arg_ty}`, which makes `{ident}` to be \
337+
"this is of type `{arg_ty}`, which causes `{ident}` to be \
338338
inferred as `{ty}`",
339339
),
340340
);

‎src/test/ui/type/type-check/point-at-inference-3.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
fn main() {
33
let mut v = Vec::new();
44
v.push(0i32);
5-
//~^ NOTE this is of type `i32`, which makes `v` to be inferred as `Vec<i32>`
5+
//~^ NOTE this is of type `i32`, which causes `v` to be inferred as `Vec<i32>`
66
v.push(0);
77
v.push(1i32); //~ ERROR mismatched types
88
//~^ NOTE expected `i32`, found `u32`

‎src/test/ui/type/type-check/point-at-inference-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
fn main() {
33
let mut v = Vec::new();
44
v.push(0i32);
5-
//~^ NOTE this is of type `i32`, which makes `v` to be inferred as `Vec<i32>`
5+
//~^ NOTE this is of type `i32`, which causes `v` to be inferred as `Vec<i32>`
66
v.push(0);
77
v.push(1u32); //~ ERROR mismatched types
88
//~^ NOTE expected `i32`, found `u32`

‎src/test/ui/type/type-check/point-at-inference-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
22
--> $DIR/point-at-inference-3.rs:7:12
33
|
44
LL | v.push(0i32);
5-
| ---- this is of type `i32`, which makes `v` to be inferred as `Vec<i32>`
5+
| ---- this is of type `i32`, which causes `v` to be inferred as `Vec<i32>`
66
...
77
LL | v.push(1u32);
88
| ---- ^^^^ expected `i32`, found `u32`

‎src/test/ui/type/type-check/point-at-inference.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
22
--> $DIR/point-at-inference.rs:12:9
33
|
44
LL | foo.push(i);
5-
| - this is of type `&{integer}`, which makes `foo` to be inferred as `Vec<&{integer}>`
5+
| - this is of type `&{integer}`, which causes `foo` to be inferred as `Vec<&{integer}>`
66
...
77
LL | bar(foo);
88
| --- ^^^ expected `i32`, found `&{integer}`

0 commit comments

Comments
 (0)