about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-03 21:11:34 +0100
committerGitHub <noreply@github.com>2025-02-03 21:11:34 +0100
commit2c6c7f8ef2029712e82c96ecd614973faf537bd1 (patch)
tree847303f78f1c9a069ca283cc18dc3b7ee14497c3 /compiler/rustc_codegen_llvm/src/errors.rs
parente38f1152beb2bb97156bcfef5fd8c9bfee43ad34 (diff)
parentb866debf3cdbc30f71b0800684236213ebbb2d8c (diff)
downloadrust-2c6c7f8ef2029712e82c96ecd614973faf537bd1.tar.gz
rust-2c6c7f8ef2029712e82c96ecd614973faf537bd1.zip
Rollup merge of #136411 - dtolnay:fnptr, r=notriddle
Omit argument names from function pointers that do not have argument names

This matches the style used for the vast majority of function pointer types in real-world code, in my experience. Prefixing `_: ` to every argument does not improve clarity.

**Before:**

<img src="https://github.com/user-attachments/assets/f07efa8b-d57e-4897-aa97-40db7d207862">

**After:**

<img src="https://github.com/user-attachments/assets/8405e08b-d6d2-4904-bcc3-a3eb866cecf0">
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions