diff options
| author | Tim (Theemathas) Chirananthavat <theemathas@gmail.com> | 2024-09-07 21:06:49 +0700 |
|---|---|---|
| committer | Tim (Theemathas) Chirananthavat <theemathas@gmail.com> | 2024-09-07 21:06:49 +0700 |
| commit | 79b87c57cbddc7ac4a6e9f7381616e77e3f443c5 (patch) | |
| tree | ea7de2abc591b233f28251befe275f9dc77ea435 /tests | |
| parent | 8230a90c494dcc7d8013a0a15719cc9f2f9a8263 (diff) | |
| download | rust-79b87c57cbddc7ac4a6e9f7381616e77e3f443c5.tar.gz rust-79b87c57cbddc7ac4a6e9f7381616e77e3f443c5.zip | |
Bless tests due to new method suggestions.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/privacy/suggest-box-new.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/suggestions/deref-path-method.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/ufcs/bad-builder.stderr | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/privacy/suggest-box-new.stderr b/tests/ui/privacy/suggest-box-new.stderr index 8b01e8c3c10..1e28b9fbd86 100644 --- a/tests/ui/privacy/suggest-box-new.stderr +++ b/tests/ui/privacy/suggest-box-new.stderr @@ -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(); diff --git a/tests/ui/suggestions/deref-path-method.stderr b/tests/ui/suggestions/deref-path-method.stderr index b27d9aef066..bfcc2307fd7 100644 --- a/tests/ui/suggestions/deref-path-method.stderr +++ b/tests/ui/suggestions/deref-path-method.stderr @@ -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 `[_]` | diff --git a/tests/ui/ufcs/bad-builder.stderr b/tests/ui/ufcs/bad-builder.stderr index 9cfeb7a5d09..e466f94d0d8 100644 --- a/tests/ui/ufcs/bad-builder.stderr +++ b/tests/ui/ufcs/bad-builder.stderr @@ -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 | |
