fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
956 B32 linesraw
1warning: unnecessary parentheses around `return` value
2  --> $DIR/path-lookahead.rs:8:10
3   |
4LL |   return (<T as ToString>::to_string(&arg));
5   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
6   |
7note: lint level defined here
8  --> $DIR/path-lookahead.rs:3:9
9   |
10LL | #![warn(unused)]
11   |         ^^^^^^
12   = note: `#[warn(unused_parens)]` implied by `#[warn(unused)]`
13
14warning: function is never used: `with_parens`
15  --> $DIR/path-lookahead.rs:7:1
16   |
17LL | fn with_parens<T: ToString>(arg: T) -> String {
18   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19   |
20note: lint level defined here
21  --> $DIR/path-lookahead.rs:3:9
22   |
23LL | #![warn(unused)]
24   |         ^^^^^^
25   = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
26
27warning: function is never used: `no_parens`
28  --> $DIR/path-lookahead.rs:11:1
29   |
30LL | fn no_parens<T: ToString>(arg: T) -> String {
31   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32