rollup merge of #21396: japaric/no-parens-in-range
Conflicts: src/libsyntax/parse/lexer/comments.rs
This commit is contained in:
commit
1646707c6e
38 changed files with 70 additions and 70 deletions
|
@ -1298,7 +1298,7 @@ impl Stack {
|
|||
InternalIndex(i) => StackElement::Index(i),
|
||||
InternalKey(start, size) => {
|
||||
StackElement::Key(str::from_utf8(
|
||||
&self.str_buffer[(start as uint) .. (start as uint + size as uint)])
|
||||
&self.str_buffer[start as uint .. start as uint + size as uint])
|
||||
.unwrap())
|
||||
}
|
||||
}
|
||||
|
@ -1341,7 +1341,7 @@ impl Stack {
|
|||
Some(&InternalIndex(i)) => Some(StackElement::Index(i)),
|
||||
Some(&InternalKey(start, size)) => {
|
||||
Some(StackElement::Key(str::from_utf8(
|
||||
&self.str_buffer[(start as uint) .. (start+size) as uint]
|
||||
&self.str_buffer[start as uint .. (start+size) as uint]
|
||||
).unwrap()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue