about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-29 11:43:46 +0100
committerGitHub <noreply@github.com>2025-03-29 11:43:46 +0100
commit111351fcc1cea56454838f3443e10d0e924589e0 (patch)
tree7e7f7932737bbc1ccf2d34865f09e6c0b8aa01e9 /compiler/rustc_codegen_llvm/src
parentc82b88b009b7053ac8fcdbac8ad0c0c42d8305d5 (diff)
parenta7bafc0afc3dba988a7bf85198c493b20523eaa0 (diff)
downloadrust-111351fcc1cea56454838f3443e10d0e924589e0.tar.gz
rust-111351fcc1cea56454838f3443e10d0e924589e0.zip
Rollup merge of #138988 - madsmtm:internal-weak-macro-syntax, r=ibraheemdev
Change the syntax of the internal `weak!` macro

Change the syntax to include parameter names and a trailing semicolon.

Motivation:
- Mirror the `syscall!` macro.
- Allow rustfmt to format it (when wrapped in parentheses, and when not inside `cfg_if!`).
- For better documentation (having the parameter names available in the source code is a bit nicer).
- Allow a future improvement to this macro where we can sometimes use the symbol directly when it's statically known to be available (and thus need the parameter names to be available), see https://github.com/rust-lang/rust/pull/136868.

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