Auto merge of #145877 - nikic:capture-address, r=tmiasko

Use captures(address) instead of captures(none) for indirect args

While provenance cannot be captured through these arguments, the address / object identity can.

Fixes https://github.com/rust-lang/rust/issues/137668.

r? `@ghost`
This commit is contained in:
bors
2025-08-28 00:01:22 +00:00
15 changed files with 47 additions and 35 deletions

View File

@@ -263,7 +263,7 @@ pub(crate) enum AttributeKind {
MinSize = 4,
Naked = 5,
NoAlias = 6,
NoCapture = 7,
CapturesAddress = 7,
NoInline = 8,
NonNull = 9,
NoRedZone = 10,