about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-05-04 13:21:07 +1000
committerGitHub <noreply@github.com>2025-05-04 13:21:07 +1000
commit9c949b0373ad51a9285c9dc86ee853a6137bc9f9 (patch)
tree2241d8d3ea056eb96d0f06ea010bf82f499f5914 /compiler/rustc_codegen_llvm/src/builder.rs
parented7590f1a0932341f938e34bfb69c72bbc255fcf (diff)
parent873ca5fa04b79da80ca779e0e577f06a07cea8d3 (diff)
downloadrust-9c949b0373ad51a9285c9dc86ee853a6137bc9f9.tar.gz
rust-9c949b0373ad51a9285c9dc86ee853a6137bc9f9.zip
Rollup merge of #140286 - xizheyin:issue-139104, r=lcnr
Check if format argument is identifier to avoid error err-emit

Fixes #139104

When `argument` is not an identifier, it should not be considered a field access. I checked this and if not emit an invalid format string error. I think we could do with a little finer error handling, I'll open an issue to track this down later.

The first commit submits the ui test, the second commits the code and the changes to the test output.

r? compiler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions