Skip to content

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jul 4, 2025

Not much to see this time, other than:

  • some more format_args! complications (less efficient codegen for some reason)
  • -Zshare-generics=off now being needed (because of weird special-casing done to compiler-builtins otherwise leaking to shader crates, via e.g. <Range<usize> as Iterator>>:next)
  • a couple bulk Clippy-driven changes (esp. clippy::collapsible_if, it's surprisingly applicable)

@eddyb eddyb marked this pull request as ready for review July 9, 2025 20:43
@eddyb eddyb enabled auto-merge July 9, 2025 20:43
Copy link
Collaborator

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

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

I don't see anything obvious but admittedly am not qualified to review this.

let align_override =
Some(alloc.align).filter(|&align| align != self.lookup_type(value_ty).alignof(self));
if let Some(_align) = align_override {
// FIXME(eddyb) implement, or at least error.
Copy link
Collaborator

Choose a reason for hiding this comment

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

todo!() these? I don't know this code so don't know if needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

todo!() would ICE, it should at the very least be a nice user error if we do want to enforce it.
(otherwise, e.g. assert_eq!(alloc.align, self.lookup_type(value_ty).alignof(self)) is much better than a todo!(), but I don't think we should do either)

These things used to be ignored before, too, I just made the code slightly clearer that that's happening.

@eddyb eddyb added this pull request to the merge queue Jul 9, 2025
Merged via the queue into Rust-GPU:main with commit 4a9e76c Jul 9, 2025
13 checks passed
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.

2 participants