mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Bless tests due to new method suggestions.
This commit is contained in:
parent
8230a90c49
commit
79b87c57cb
@ -44,7 +44,7 @@ LL | wtf: Some(Box::new_zeroed()),
|
||||
| ~~~~~~~~~~~~~~
|
||||
LL | wtf: Some(Box::new_in(_, _)),
|
||||
| ~~~~~~~~~~~~~~
|
||||
and 10 other candidates
|
||||
and 12 other candidates
|
||||
help: consider using the `Default` trait
|
||||
|
|
||||
LL | wtf: Some(<Box as std::default::Default>::default()),
|
||||
@ -89,7 +89,7 @@ LL | let _ = Box::new_zeroed();
|
||||
| ~~~~~~~~~~~~~~
|
||||
LL | let _ = Box::new_in(_, _);
|
||||
| ~~~~~~~~~~~~~~
|
||||
and 10 other candidates
|
||||
and 12 other candidates
|
||||
help: consider using the `Default` trait
|
||||
|
|
||||
LL | let _ = <Box as std::default::Default>::default();
|
||||
|
@ -9,7 +9,7 @@ note: if you're trying to build a new `Vec<_, _>` consider using one of the foll
|
||||
Vec::<T>::with_capacity
|
||||
Vec::<T>::try_with_capacity
|
||||
Vec::<T>::from_raw_parts
|
||||
and 4 others
|
||||
and 6 others
|
||||
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||
help: the function `contains` is implemented on `[_]`
|
||||
|
|
||||
|
@ -9,7 +9,7 @@ note: if you're trying to build a new `Vec<Q>` consider using one of the followi
|
||||
Vec::<T>::with_capacity
|
||||
Vec::<T>::try_with_capacity
|
||||
Vec::<T>::from_raw_parts
|
||||
and 4 others
|
||||
and 6 others
|
||||
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||
help: there is an associated function `new` with a similar name
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user