Skip to content

Conversation

Firestar99
Copy link
Member

closes #428

callee_ty: Self::Type,
_fn_attrs: Option<&CodegenFnAttrs>,
_fn_abi: Option<&FnAbi<'tcx, Ty<'tcx>>>,
fn_abi: Option<&FnAbi<'tcx, Ty<'tcx>>>,
Copy link
Member Author

Choose a reason for hiding this comment

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

I hope just using the one given to me is correct here, previously the FnAbi was computed from:

let fn_abi = self.fn_abi_of_instance(instance, ty::List::empty());

But it was in a function that wasn't given an FnAbi but a rustc_middle::ty::Instance, which I never interacted with.

@Firestar99 Firestar99 marked this pull request as ready for review October 8, 2025 16:11
Comment on lines -158 to -161
let mode = &fn_abi.args.last().unwrap().mode;
self.buffer_store_intrinsics
.borrow_mut()
.insert(def_id, mode);
Copy link
Member

Choose a reason for hiding this comment

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

Oh wow, so being keyed on the DefId of a generic function meant that the last instance would win, and every call would be expected to conform to it.

@eddyb eddyb added this pull request to the merge queue Oct 11, 2025
Merged via the queue into main with commit 4764b45 Oct 11, 2025
13 checks passed
@eddyb eddyb deleted the byte_addr_scalar_and_pair_mix branch October 11, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ByteAddressableBuffer: storing a Scalar and ScalarPair within the same codebase fails to compile

2 participants