Skip to content

Commit 79b87c5

Browse files
committed
Bless tests due to new method suggestions.
1 parent 8230a90 commit 79b87c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/ui/privacy/suggest-box-new.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LL | wtf: Some(Box::new_zeroed()),
4444
| ~~~~~~~~~~~~~~
4545
LL | wtf: Some(Box::new_in(_, _)),
4646
| ~~~~~~~~~~~~~~
47-
and 10 other candidates
47+
and 12 other candidates
4848
help: consider using the `Default` trait
4949
|
5050
LL | wtf: Some(<Box as std::default::Default>::default()),
@@ -89,7 +89,7 @@ LL | let _ = Box::new_zeroed();
8989
| ~~~~~~~~~~~~~~
9090
LL | let _ = Box::new_in(_, _);
9191
| ~~~~~~~~~~~~~~
92-
and 10 other candidates
92+
and 12 other candidates
9393
help: consider using the `Default` trait
9494
|
9595
LL | let _ = <Box as std::default::Default>::default();

tests/ui/suggestions/deref-path-method.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: if you're trying to build a new `Vec<_, _>` consider using one of the foll
99
Vec::<T>::with_capacity
1010
Vec::<T>::try_with_capacity
1111
Vec::<T>::from_raw_parts
12-
and 4 others
12+
and 6 others
1313
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
1414
help: the function `contains` is implemented on `[_]`
1515
|

tests/ui/ufcs/bad-builder.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: if you're trying to build a new `Vec<Q>` consider using one of the followi
99
Vec::<T>::with_capacity
1010
Vec::<T>::try_with_capacity
1111
Vec::<T>::from_raw_parts
12-
and 4 others
12+
and 6 others
1313
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
1414
help: there is an associated function `new` with a similar name
1515
|

0 commit comments

Comments
 (0)