1
Fork 0

core: Inherit non-allocating slice functionality

This commit adds a new trait, MutableVectorAllocating, which represents
functions on vectors which can allocate.

This is another extension trait to slices which should be removed once a lang
item exists for the ~ allocation.
This commit is contained in:
Alex Crichton 2014-04-30 22:54:25 -07:00
parent be0a11729e
commit 91ede1f09a
7 changed files with 1538 additions and 1556 deletions

View file

@ -1398,7 +1398,6 @@ impl<T: Iterator<char>> Parser<T> {
'n' => res.push_char('\n'),
'r' => res.push_char('\r'),
't' => res.push_char('\t'),
//<<<<<<< HEAD
'u' => match try!(self.decode_hex_escape()) {
0xDC00 .. 0xDFFF => return self.error(LoneLeadingSurrogateInHexEscape),