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:
parent
be0a11729e
commit
91ede1f09a
7 changed files with 1538 additions and 1556 deletions
|
@ -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),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue