diff options
| author | bors <bors@rust-lang.org> | 2015-02-05 19:00:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-05 19:00:13 +0000 |
| commit | 189930fcae287565dcef856ae8d60a83190a4b92 (patch) | |
| tree | 325defba0f55b48273cd3f0814fe6c083dee5d41 /src/libstd/sync | |
| parent | 2c05354211b04a52cc66a0b8ad8b2225eaf9e972 (diff) | |
| parent | 17bc7d8d5be3be9674d702ccad2fa88c487d23b0 (diff) | |
| download | rust-189930fcae287565dcef856ae8d60a83190a4b92.tar.gz rust-189930fcae287565dcef856ae8d60a83190a4b92.zip | |
Auto merge of #21916 - japaric:no-as-slice, r=alexcrichton
r? @alexcrichton cc @eddyb
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/spsc_queue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs index c80aa567173..f0558c33d1e 100644 --- a/src/libstd/sync/mpsc/spsc_queue.rs +++ b/src/libstd/sync/mpsc/spsc_queue.rs @@ -274,7 +274,7 @@ mod test { // Ensure the borrowchecker works match queue.peek() { - Some(vec) => match vec.as_slice() { + Some(vec) => match &**vec { // Note that `pop` is not allowed here due to borrow [1] => {} _ => return |
