about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-01 10:48:57 +0100
committerGitHub <noreply@github.com>2022-01-01 10:48:57 +0100
commit913bc8644a43a11d41ad5f051cb0fcd0bd795163 (patch)
treea9b1ad6dd4fbbf085ad1dd35de1d2c76ec09f771 /compiler/rustc_codegen_gcc/src
parenta76128b365f59511447a86268b0fde57d5d4d0df (diff)
parent4a7f276cb67673ad2550ee7ef91caa0706565679 (diff)
downloadrust-913bc8644a43a11d41ad5f051cb0fcd0bd795163.tar.gz
rust-913bc8644a43a11d41ad5f051cb0fcd0bd795163.zip
Rollup merge of #92460 - dwrensha:fix-92267, r=petrochenkov
[rustc_builtin_macros] add indices to format_foreign::printf::Substitution::Escape

Fixes #92267.

The problem was that the escape string "%%" does not need to appear at the very beginning of the format string, but
the iterator implementation assumed that it did.

The solution follows the pattern used by `format_foregin::shell::Subtitution::Escape`: https://github.com/rust-lang/rust/blob/8ed935e92dfb09ae388344b12284bf5110cf9265/compiler/rustc_builtin_macros/src/format_foreign.rs#L629
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions