]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #100851 - Alexendoo:rpf-width-prec-spans, r=fee1-dead
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Tue, 23 Aug 2022 15:10:06 +0000 (20:40 +0530)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 15:10:06 +0000 (20:40 +0530)
commit110d8d99b2de49044be7dc7b59f4a39724400cde
treeb51828bd6ca0938f1ca293d4b8f9b8f5d45ecd15
parenta163659b1b619d3e7872fda88de5c09c3d47635e
parent586c84a0522072b68d38d1d062b7264ab323a87e
Rollup merge of #100851 - Alexendoo:rpf-width-prec-spans, r=fee1-dead

Fix rustc_parse_format precision & width spans

When a `precision`/`width` was `CountIsName - {:name$}` or `CountIs - {:10}` the `precision_span`/`width_span` was set to `None`

For `width` the name span in `CountIsName(_, name_span)` had its `.start` off by one

r? ``@fee1-dead`` / cc ``@PrestonFrom`` since this is similar to #99987
compiler/rustc_builtin_macros/src/format.rs