diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-11 14:21:07 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-11 16:55:10 +1100 | 
| commit | d02150fd45b4e63007a446f497ce032f48b1166e (patch) | |
| tree | 99248f563def49efb9b552840e205e00fc233e53 /compiler/rustc_parse/src/lexer/unicode_chars.rs | |
| parent | fbe68bc40c6e49efa3a6ec4aa2640786853f2479 (diff) | |
| download | rust-d02150fd45b4e63007a446f497ce032f48b1166e.tar.gz rust-d02150fd45b4e63007a446f497ce032f48b1166e.zip | |
Fix lifetimes in `StringReader`.
Two different lifetimes are conflated. This doesn't matter right now, but needs to be fixed for the next commit to work. And the more descriptive lifetime names make the code easier to read.
Diffstat (limited to 'compiler/rustc_parse/src/lexer/unicode_chars.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/unicode_chars.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_parse/src/lexer/unicode_chars.rs b/compiler/rustc_parse/src/lexer/unicode_chars.rs index dac7569e385..a136abaa28b 100644 --- a/compiler/rustc_parse/src/lexer/unicode_chars.rs +++ b/compiler/rustc_parse/src/lexer/unicode_chars.rs @@ -337,7 +337,7 @@ const ASCII_ARRAY: &[(&str, &str, Option<token::TokenKind>)] = &[ ]; pub(super) fn check_for_substitution( - reader: &StringReader<'_>, + reader: &StringReader<'_, '_>, pos: BytePos, ch: char, count: usize, | 
