Files
rust/library/core/src
bors 795ade084a Auto merge of #113365 - dima74:diralik/add-deprecated-suggestions, r=workingjubilee
Add `suggestion` for some `#[deprecated]` items

Consider code:
```rust
fn main() {
    let _ = ["a", "b"].connect(" ");
}
```

Currently it shows deprecated warning:
```rust
warning: use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join
 --> src/main.rs:2:24
  |
2 |     let _ = ["a", "b"].connect(" ");
  |                        ^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
```

This PR adds `suggestion` for `connect` and some other deprecated items, so the warning will be changed to this:
```rust
warning: use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join
 --> src/main.rs:2:24
  |
2 |     let _ = ["a", "b"].connect(" ");
  |                        ^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
help: replace the use of the deprecated method
  |
2 |     let _ = ["a", "b"].join(" ");
  |                        ^^^^
```
2023-08-22 00:02:50 +00:00
..
2022-10-29 09:23:12 +02:00
2023-05-12 19:37:02 -07:00
2023-08-18 09:19:09 +02:00
2023-08-11 07:26:51 +08:00
2023-07-18 20:58:35 -04:00
2023-08-13 13:07:53 -06:00
2022-11-20 10:28:14 +01:00
2023-05-12 19:37:02 -07:00
2022-05-22 07:18:32 -03:00
2023-04-16 07:20:26 +00:00
2023-07-28 14:46:17 +02:00
2023-07-08 12:10:12 +09:00
2023-08-15 08:21:41 +02:00
2023-04-16 06:49:27 +00:00
2023-08-18 15:22:58 +08:00
2023-05-18 01:30:12 -04:00
2023-08-18 15:22:58 +08:00
2023-07-12 21:38:55 -04:00