fork/rust

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

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

master
891 B29 linesraw
1error: calling `.extend(_.chars())`
2  --> $DIR/string_extend.rs:16:5
3   |
4LL |     s.extend(abc.chars());
5   |     ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(abc)`
6   |
7   = note: `-D clippy::string-extend-chars` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::string_extend_chars)]`
9
10error: calling `.extend(_.chars())`
11  --> $DIR/string_extend.rs:19:5
12   |
13LL |     s.extend("abc".chars());
14   |     ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str("abc")`
15
16error: calling `.extend(_.chars())`
17  --> $DIR/string_extend.rs:22:5
18   |
19LL |     s.extend(def.chars());
20   |     ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&def)`
21
22error: calling `.extend(_.chars())`
23  --> $DIR/string_extend.rs:32:5
24   |
25LL |     s.extend(abc[0..2].chars());
26   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&abc[0..2])`
27
28error: aborting due to 4 previous errors
29