diff options
| author | bors <bors@rust-lang.org> | 2022-05-11 06:29:04 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-11 06:29:04 +0000 | 
| commit | ee6eaabdd402583ab759eb271ac69d26e06842d7 (patch) | |
| tree | 9794dde2f6169492971376420fe5e6ce0712c0f4 /compiler/rustc_mir_transform/src/coverage/spans.rs | |
| parent | b862b438dbffb959ef4e9643148ecd05b8da4d8a (diff) | |
| parent | 514b585757126a09785765bc5177299cd5bb5e2d (diff) | |
| download | rust-ee6eaabdd402583ab759eb271ac69d26e06842d7.tar.gz rust-ee6eaabdd402583ab759eb271ac69d26e06842d7.zip | |
Auto merge of #96931 - JohnTitor:rollup-3um8o4j, r=JohnTitor
Rollup of 7 pull requests Successful merges: - #96543 (Remove hacks in `make_token_stream`.) - #96887 (rustdoc: correct path to type alias methods) - #96896 (Add regression test for #68408) - #96900 (Fix js error) - #96903 (Use lifetimes on type-alias-impl-trait used in function signatures to infer output type lifetimes) - #96916 (simplify length count) - #96925 (Fix issue #95151) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/spans.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/coverage/spans.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_mir_transform/src/coverage/spans.rs b/compiler/rustc_mir_transform/src/coverage/spans.rs index 5b7b343949c..512d4daf343 100644 --- a/compiler/rustc_mir_transform/src/coverage/spans.rs +++ b/compiler/rustc_mir_transform/src/coverage/spans.rs @@ -485,7 +485,7 @@ impl<'a, 'tcx> CoverageSpans<'a, 'tcx> { }) { let merged_prefix_len = self.curr_original_span.lo() - self.curr().span.lo(); let after_macro_bang = - merged_prefix_len + BytePos(visible_macro.as_str().bytes().count() as u32 + 1); + merged_prefix_len + BytePos(visible_macro.as_str().len() as u32 + 1); let mut macro_name_cov = self.curr().clone(); self.curr_mut().span = self.curr().span.with_lo(self.curr().span.lo() + after_macro_bang); | 
