sinkuu f1b0b774e7 Support non-moving usages at match
This `match` is not moving the `String`:

```rust
fn foo(x: Option<String>) -> i32 {
    match x {
        Some(_) => 1,
        None => 2,
    }
}
```

With this change, it will be linted and suggested to add `*` to deref it.

```rust
fn foo(x: &Option<String>) -> i32 {
    match *x {
        Some(_) => 1,
        None => 2,
    }
}
```
2017-02-20 16:45:37 +09:00
..
2017-02-08 14:58:07 +01:00
2017-02-08 14:58:07 +01:00
2017-02-20 16:45:37 +09:00
2016-08-17 18:35:25 +02:00
2017-01-17 19:27:52 +01:00
2016-10-22 16:16:55 +02:00
2016-12-20 10:20:41 +01:00
2017-02-19 07:59:44 +09:00
2016-12-20 10:20:41 +01:00
2017-01-26 11:31:26 +01:00