about summary refs log tree commit diff
path: root/compiler/rustc_parse_format/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-22 16:54:56 +0100
committerGitHub <noreply@github.com>2024-01-22 16:54:56 +0100
commite355b276bd32899a386381dfc1c95857d6491b7c (patch)
treedf9985e3dda51e20251aae88e6fe733f8a38422a /compiler/rustc_parse_format/src
parent30662530506ed29ea29191798cb2ab8aa1249023 (diff)
parent3b325bc25fdc0459b99ccb3baeb48a4c2459869c (diff)
downloadrust-e355b276bd32899a386381dfc1c95857d6491b7c.tar.gz
rust-e355b276bd32899a386381dfc1c95857d6491b7c.zip
Rollup merge of #117910 - madsmtm:msg-send-no-clashing, r=thomcc
Refactor uses of `objc_msgSend` to no longer have clashing definitions

This is very similar to what Apple's own headers encourage you to do (cast the function pointer before use instead of making new declarations).

Additionally, I'm documenting a few of the memory management rules we're following, ensuring that the `args` function doesn't leak memory (if you wrap it in an autorelease pool).

Motivation is to avoid issues with clashing definitions, like described in https://github.com/rust-lang/rust/issues/12707#issuecomment-1570735643 and https://github.com/rust-lang/rust/issues/46188#issuecomment-1288058453, CC ``@bjorn3.``
Diffstat (limited to 'compiler/rustc_parse_format/src')
0 files changed, 0 insertions, 0 deletions