about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-26 01:05:56 +0000
committerbors <bors@rust-lang.org>2017-11-26 01:05:56 +0000
commit693bb0dae24101f1699949ec02917167a6c172d5 (patch)
treef641a43905586fc906576cc0756254881b53c55b /src/libstd/sys/unix/stack_overflow.rs
parent128b40fadc2c227a07e77e06c05dd33c47390237 (diff)
parent15dfd7eb61a63fff6293617552306c6a4fac862b (diff)
downloadrust-693bb0dae24101f1699949ec02917167a6c172d5.tar.gz
rust-693bb0dae24101f1699949ec02917167a6c172d5.zip
Auto merge of #45947 - estebank:match_default_bindings-arg-hint, r=arielb1
Be more obvious when suggesting dereference

Include `&` span when suggesting dereference on a span that is already a reference:

```
error: non-reference pattern used to match a reference (see issue #42640)
  --> dont-suggest-dereference-on-arg.rs:16:19
   |
16 |         .filter(|&(ref a, _)| foo(a))
   |                  ^^^^^^^^^^^ help: consider using: `&&(ref k, _)`
   |
   = help: add #![feature(match_default_bindings)] to the crate attributes to enable
```

Fix #45925.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions