fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this call to `as_ref` does nothing 2 --> $DIR/useless_asref.rs:46:18 3 | 4LL | foo_rstr(rstr.as_ref()); 5 | ^^^^^^^^^^^^^ help: try: `rstr` 6 | 7note: the lint level is defined here 8 --> $DIR/useless_asref.rs:1:9 9 | 10LL | #![deny(clippy::useless_asref)] 11 | ^^^^^^^^^^^^^^^^^^^^^ 12 13error: this call to `as_ref` does nothing 14 --> $DIR/useless_asref.rs:48:20 15 | 16LL | foo_rslice(rslice.as_ref()); 17 | ^^^^^^^^^^^^^^^ help: try: `rslice` 18 19error: this call to `as_mut` does nothing 20 --> $DIR/useless_asref.rs:52:21 21 | 22LL | foo_mrslice(mrslice.as_mut()); 23 | ^^^^^^^^^^^^^^^^ help: try: `mrslice` 24 25error: this call to `as_ref` does nothing 26 --> $DIR/useless_asref.rs:54:20 27 | 28LL | foo_rslice(mrslice.as_ref()); 29 | ^^^^^^^^^^^^^^^^ help: try: `mrslice` 30 31error: this call to `as_ref` does nothing 32 --> $DIR/useless_asref.rs:61:20 33 | 34LL | foo_rslice(rrrrrslice.as_ref()); 35 | ^^^^^^^^^^^^^^^^^^^ help: try: `rrrrrslice` 36 37error: this call to `as_ref` does nothing 38 --> $DIR/useless_asref.rs:63:18 39 | 40LL | foo_rstr(rrrrrstr.as_ref()); 41 | ^^^^^^^^^^^^^^^^^ help: try: `rrrrrstr` 42 43error: this call to `as_mut` does nothing 44 --> $DIR/useless_asref.rs:68:21 45 | 46LL | foo_mrslice(mrrrrrslice.as_mut()); 47 | ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice` 48 49error: this call to `as_ref` does nothing 50 --> $DIR/useless_asref.rs:70:20 51 | 52LL | foo_rslice(mrrrrrslice.as_ref()); 53 | ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice` 54 55error: this call to `as_ref` does nothing 56 --> $DIR/useless_asref.rs:74:16 57 | 58LL | foo_rrrrmr((&&&&MoreRef).as_ref()); 59 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&&&&MoreRef)` 60 61error: this call to `as_mut` does nothing 62 --> $DIR/useless_asref.rs:124:13 63 | 64LL | foo_mrt(mrt.as_mut()); 65 | ^^^^^^^^^^^^ help: try: `mrt` 66 67error: this call to `as_ref` does nothing 68 --> $DIR/useless_asref.rs:126:12 69 | 70LL | foo_rt(mrt.as_ref()); 71 | ^^^^^^^^^^^^ help: try: `mrt` 72 73error: aborting due to 11 previous errors 74