Stop using unstable slice_patterns feature

This commit is contained in:
Matt Brubeck 2017-05-01 14:17:37 -07:00
parent e92a79619e
commit 10478b4fa3
5 changed files with 5 additions and 10 deletions

View file

@ -223,9 +223,9 @@ impl ChildrenList {
// by ChildrenMutation::replace().
unreachable!()
},
(_, &[node, ..], _) => node,
(_, &[], Some(next)) => next,
(Some(prev), &[], None) => {
(_, added, _) if !added.is_empty() => added[0],
(_, _, Some(next)) => next,
(Some(prev), _, None) => {
list.last_index.set(index - 1u32);
prev
},

View file

@ -12,7 +12,6 @@
#![feature(optin_builtin_traits)]
#![feature(plugin)]
#![feature(proc_macro)]
#![feature(slice_patterns)]
#![feature(stmt_expr_attributes)]
#![feature(try_from)]
#![feature(untagged_unions)]