1
Fork 0

Remove all shadowed lifetimes.

This commit is contained in:
Niko Matsakis 2014-12-12 11:09:32 -05:00
parent b60de4bfc2
commit 1718cd6ee0
32 changed files with 124 additions and 125 deletions

View file

@ -275,8 +275,8 @@ impl<'a> StringReader<'a> {
}
/// Converts CRLF to LF in the given string, raising an error on bare CR.
fn translate_crlf<'a>(&self, start: BytePos,
s: &'a str, errmsg: &'a str) -> str::CowString<'a> {
fn translate_crlf<'b>(&self, start: BytePos,
s: &'b str, errmsg: &'b str) -> str::CowString<'b> {
let mut i = 0u;
while i < s.len() {
let str::CharRange { ch, next } = s.char_range_at(i);