fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB40 linesraw
1error: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
2  --> $DIR/issue-84637-deprecated-associated-function.rs:6:21
3   |
4LL |     let _foo = str::trim_left("   aoeu");
5   |                     ^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-84637-deprecated-associated-function.rs:3:9
9   |
10LL | #![deny(deprecated)]
11   |         ^^^^^^^^^^
12help: replace the use of the deprecated method
13   |
14LL |     let _foo = str::trim_start("   aoeu");
15   |                     ~~~~~~~~~~
16
17error: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
18  --> $DIR/issue-84637-deprecated-associated-function.rs:8:26
19   |
20LL |     let _bar = "   aoeu".trim_left();
21   |                          ^^^^^^^^^
22   |
23help: replace the use of the deprecated method
24   |
25LL |     let _bar = "   aoeu".trim_start();
26   |                          ~~~~~~~~~~
27
28error: use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join
29  --> $DIR/issue-84637-deprecated-associated-function.rs:10:27
30   |
31LL |     let _baz = ["a", "b"].connect(" ");
32   |                           ^^^^^^^
33   |
34help: replace the use of the deprecated method
35   |
36LL |     let _baz = ["a", "b"].join(" ");
37   |                           ~~~~
38
39error: aborting due to 3 previous errors
40