Skip to content

Commit bac9e55

Browse files
committed
---
yaml --- r: 81976 b: refs/heads/master c: c151d37 h: refs/heads/master v: v3
1 parent 786e615 commit bac9e55

File tree

12 files changed

+388
-484
lines changed

12 files changed

+388
-484
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3709aa78d8fc75ed739e837d7c96205b8494188d
2+
refs/heads/master: c151d371fcfb51fbf4d84f0ef266e30d64acd71a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/librustc/middle/check_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,12 +773,12 @@ pub fn specialize(cx: &MatchCheckCtxt,
773773
let num_elements = before.len() + after.len();
774774
if num_elements < arity && slice.is_some() {
775775
Some(vec::append(
776-
[
776+
vec::concat(&[
777777
before,
778778
vec::from_elem(
779779
arity - num_elements, wild()),
780780
after
781-
].concat_vec(),
781+
]),
782782
r.tail()
783783
))
784784
} else if num_elements == arity {

0 commit comments

Comments
 (0)