]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/path-lookahead.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / path-lookahead.stderr
index 19e22b3f6f94fc8c10aa82f013f0b1ced61ca61e..89df5e894aa343d3addc064040a95d59ce86f1f1 100644 (file)
@@ -1,27 +1,32 @@
 warning: unnecessary parentheses around `return` value
   --> $DIR/path-lookahead.rs:18:10
    |
-18 |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
+LL |   return (<T as ToString>::to_string(&arg)); //~WARN unnecessary parentheses around `return` value
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
-   = note: #[warn(unused_parens)] on by default
+note: lint level defined here
+  --> $DIR/path-lookahead.rs:13:9
+   |
+LL | #![warn(unused)]
+   |         ^^^^^^
+   = note: #[warn(unused_parens)] implied by #[warn(unused)]
 
 warning: function is never used: `with_parens`
   --> $DIR/path-lookahead.rs:17:1
    |
-17 | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
+LL | fn with_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `with_parens`
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
 note: lint level defined here
   --> $DIR/path-lookahead.rs:13:9
    |
-13 | #![warn(unused)]
+LL | #![warn(unused)]
    |         ^^^^^^
    = note: #[warn(dead_code)] implied by #[warn(unused)]
 
 warning: function is never used: `no_parens`
   --> $DIR/path-lookahead.rs:21:1
    |
-21 | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
+LL | fn no_parens<T: ToString>(arg: T) -> String { //~WARN function is never used: `no_parens`
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^