Skip to content

Conversation

@tiif
Copy link
Member

@tiif tiif commented Dec 28, 2025

Previously, unnormalized_input_tys needs to be mutable because the c_variadic arguments are added to unnormalized_input_tys outside of compute_inputs_and_output. This could have been done together in compute_inputs_and_output.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 28, 2025

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Copy link
Contributor

@oli-obk oli-obk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit, then r=me

View changes since this review


let inputs = sig.inputs();
let va_list_and_output =
iter::once(va_list_ty).chain(iter::once(sig.output().skip_binder()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
iter::once(va_list_ty).chain(iter::once(sig.output().skip_binder()));
[va_list_ty, sig.output().skip_binder()];

iter::once(va_list_ty).chain(iter::once(sig.output().skip_binder()));

// The signature needs to follow the order [input_tys, va_list_ty, output_ty]
return inputs.map_bound(|input| {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use inputs_and_output and avoid the skip_binder on the output by doing everything inside the map_bound closure

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 28, 2025
@oli-obk
Copy link
Contributor

oli-obk commented Dec 28, 2025

r? oli-obk

@rustbot rustbot assigned oli-obk and unassigned petrochenkov Dec 28, 2025
@tiif tiif added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants