diff options
author | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:38:47 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:38:47 -0700 |
commit | 35062ef8f23d5d8f4ce89b06a44ec8a24b33dbc0 (patch) | |
tree | c0991738aeea4e139664a11059108d30bbfd3458 /src | |
parent | 3166edd929cc007d55aa384ae8019ef821f69d28 (diff) | |
download | proc-macro2-35062ef8f23d5d8f4ce89b06a44ec8a24b33dbc0.tar.gz |
Upgrade rust/crates/proc-macro2 to 1.0.28
Test: make
Change-Id: I83a1c427db2bd60913d19953bcd2ec5c18eb2d46
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/parse.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -78,7 +78,7 @@ //! a different thread. // Proc-macro2 types in rustdoc of other crates get linked to here. -#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.27")] +#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.28")] #![cfg_attr(any(proc_macro_span, super_unstable), feature(proc_macro_span))] #![cfg_attr(super_unstable, feature(proc_macro_raw_ident, proc_macro_def_site))] #![cfg_attr(doc_cfg, feature(doc_cfg))] diff --git a/src/parse.rs b/src/parse.rs index 13a05a8..eddb490 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -461,7 +461,7 @@ fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> { fn raw_string(input: Cursor) -> Result<Cursor, Reject> { let mut chars = input.char_indices(); let mut n = 0; - while let Some((i, ch)) = chars.next() { + for (i, ch) in &mut chars { match ch { '"' => { n = i; |