about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/dest_prop.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-02 01:12:13 +0000
committerbors <bors@rust-lang.org>2025-09-02 01:12:13 +0000
commit05abce5d058db0de3abd10f32f1a442d0f699b30 (patch)
tree457ebf5448cabec8a2edf8fd05cf8521db044d41 /compiler/rustc_mir_transform/src/dest_prop.rs
parent75ee9ffd5ed3649c0a09493057adaa8feebb2035 (diff)
parent213bb873518b5e6f7612cd3ac373603170b76e2b (diff)
downloadrust-05abce5d058db0de3abd10f32f1a442d0f699b30.tar.gz
rust-05abce5d058db0de3abd10f32f1a442d0f699b30.zip
Auto merge of #146059 - folkertdev:va-end-lifetime, r=saethlin
explicitly end the lifetime of `va_list`

tracking issue: https://github.com/rust-lang/rust/issues/44930
split out from: https://github.com/rust-lang/rust/pull/144549

The `va_list` is created in the compiler itself when the variable argument list `...` is desugared, and hence the lifetime end is not inserted automatically. The value can't outlive the function in which it was created, so it is correct to end the lifetime here. Ending the lifetime explicitly also appears to give slightly better codegen in https://github.com/rust-lang/rust/pull/144549.

I also included a little drive-by improvement to not cast pointers to integers and back again.

r? codegen
Diffstat (limited to 'compiler/rustc_mir_transform/src/dest_prop.rs')
0 files changed, 0 insertions, 0 deletions