1 error: calling `to_string` on `&&str`
2 --> $DIR/inefficient_to_string.rs:11:21
4 LL | let _: String = rrstr.to_string();
5 | ^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(*rrstr).to_string()`
7 note: the lint level is defined here
8 --> $DIR/inefficient_to_string.rs:2:9
10 LL | #![deny(clippy::inefficient_to_string)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: `&str` implements `ToString` through a slower blanket impl, but `str` has a fast specialization of `ToString`
14 error: calling `to_string` on `&&&str`
15 --> $DIR/inefficient_to_string.rs:12:21
17 LL | let _: String = rrrstr.to_string();
18 | ^^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(**rrrstr).to_string()`
20 = help: `&&str` implements `ToString` through a slower blanket impl, but `str` has a fast specialization of `ToString`
22 error: calling `to_string` on `&&std::string::String`
23 --> $DIR/inefficient_to_string.rs:20:21
25 LL | let _: String = rrstring.to_string();
26 | ^^^^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(*rrstring).to_string()`
28 = help: `&std::string::String` implements `ToString` through a slower blanket impl, but `std::string::String` has a fast specialization of `ToString`
30 error: calling `to_string` on `&&&std::string::String`
31 --> $DIR/inefficient_to_string.rs:21:21
33 LL | let _: String = rrrstring.to_string();
34 | ^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(**rrrstring).to_string()`
36 = help: `&&std::string::String` implements `ToString` through a slower blanket impl, but `std::string::String` has a fast specialization of `ToString`
38 error: calling `to_string` on `&&std::borrow::Cow<str>`
39 --> $DIR/inefficient_to_string.rs:29:21
41 LL | let _: String = rrcow.to_string();
42 | ^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(*rrcow).to_string()`
44 = help: `&std::borrow::Cow<str>` implements `ToString` through a slower blanket impl, but `std::borrow::Cow<str>` has a fast specialization of `ToString`
46 error: calling `to_string` on `&&&std::borrow::Cow<str>`
47 --> $DIR/inefficient_to_string.rs:30:21
49 LL | let _: String = rrrcow.to_string();
50 | ^^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(**rrrcow).to_string()`
52 = help: `&&std::borrow::Cow<str>` implements `ToString` through a slower blanket impl, but `std::borrow::Cow<str>` has a fast specialization of `ToString`
54 error: aborting due to 6 previous errors