diff options
| author | bors <bors@rust-lang.org> | 2022-09-29 19:52:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-29 19:52:48 +0000 |
| commit | 9c56d9d6fec6262bbb1549cfe466a812ae2c6523 (patch) | |
| tree | fece705fa574e50248f1e758d7a04f27ade855da /compiler/rustc_parse_format/src | |
| parent | 9f1a21ae2bd41b3dd335c44f38f29a1fb8712ddc (diff) | |
| parent | 98075708dde5b75e69d3294783c1f6abf5236dba (diff) | |
| download | rust-9c56d9d6fec6262bbb1549cfe466a812ae2c6523.tar.gz rust-9c56d9d6fec6262bbb1549cfe466a812ae2c6523.zip | |
Auto merge of #102482 - notriddle:rollup-fjm618g, r=notriddle
Rollup of 7 pull requests Successful merges: - #102214 (Fix span of byte-escaped left format args brace) - #102426 (Don't export `__wasm_init_memory` on WebAssembly.) - #102437 (rustdoc: cut margin-top from first header in docblock) - #102442 (rustdoc: remove bad CSS font-weight on `.impl`, `.method`, etc) - #102447 (rustdoc: add method spacing to trait methods) - #102468 (tidy: make rustc dependency error less confusing) - #102476 (Split out the error reporting logic into a separate function) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse_format/src')
| -rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index a9e502016aa..df22d79f82e 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -224,7 +224,7 @@ impl<'a> Iterator for Parser<'a> { '{' => { let curr_last_brace = self.last_opening_brace; let byte_pos = self.to_span_index(pos); - let lbrace_end = InnerOffset(byte_pos.0 + 1); + let lbrace_end = self.to_span_index(pos + 1); self.last_opening_brace = Some(byte_pos.to(lbrace_end)); self.cur.next(); if self.consume('{') { |
