about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-15 12:33:37 -0400
committerGitHub <noreply@github.com>2024-10-15 12:33:37 -0400
commit53d1a6616a32d96647b2243c37a0e6d89917c2dd (patch)
tree78615615e572bb2e978d78ccf2fdac18949e63d7 /compiler/rustc_codegen_llvm/src
parentfc1ad2e21c62611932a9fa695213dd67f0cd2767 (diff)
parentd3d59055a9f8a7a34d70b581638ef8b56e68d0b4 (diff)
downloadrust-53d1a6616a32d96647b2243c37a0e6d89917c2dd.tar.gz
rust-53d1a6616a32d96647b2243c37a0e6d89917c2dd.zip
Rollup merge of #131733 - practicalrs:fix_uninlined_format_args, r=jieyouxu
Fix uninlined_format_args in stable_mir

Hi,

This PR fixes some clippy warnings

```
warning: variables can be used directly in the `format!` string
   --> compiler/stable_mir/src/mir/pretty.rs:362:13
    |
362 |             write!(writer, "{kind}{:?}", place)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    = note: requested on the command line with `-W clippy::uninlined-format-args`
help: change this to
    |
362 -             write!(writer, "{kind}{:?}", place)
362 +             write!(writer, "{kind}{place:?}")
    |
```

Best regards,
Michal
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions