Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: warn on and satisfy clippy::{ptr_as_ptr,ref_as_ptr} in wgpu-{core,hal,types} #6035

Merged

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Jul 24, 2024

See commits for more details, which are intended to be merged via rebasing.

Connections

N/A

Description

I consider the title to be detail enough.

Testing

Things still compile and run!

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file. Let's not plz.

@ErichDonGubler ErichDonGubler force-pushed the ptr-cast-everywhere-plz branch from 0b5fb25 to 04d17a3 Compare July 24, 2024 14:43
@ErichDonGubler ErichDonGubler self-assigned this Jul 24, 2024
@ErichDonGubler ErichDonGubler added the kind: refactor Making existing function faster or nicer label Jul 24, 2024
@ErichDonGubler
Copy link
Member Author

Ah…clippy::ref_as_ptr was released with Rust 1.77, but our MSRV is 1.76. I'll revert the warn(…) rule for that specifically, but keep the changes from clippy --fix.

@ErichDonGubler ErichDonGubler force-pushed the ptr-cast-everywhere-plz branch 2 times, most recently from c7b1f6a to 1eb54da Compare July 24, 2024 15:23
…gpu-{core,hal,types}`

…using `cargo +1.79.0 clippy --workspace --all-features --all-targets
--fix`, plus some manual changes to (1) catch some missed cases (not run
on all platforms?) and (2) `--fix` doesn't make things compile again. 😀
@ErichDonGubler ErichDonGubler force-pushed the ptr-cast-everywhere-plz branch from 1eb54da to 5ae19cb Compare July 24, 2024 15:42
@ErichDonGubler ErichDonGubler changed the title refactor: warn on and satisfy clippy::{ptr_as_ptr,ref_as_ptr} in wgpu-{core,hal} refactor: warn on and satisfy clippy::{ptr_as_ptr,ref_as_ptr} in wgpu-{core,hal,types} Jul 24, 2024
@ErichDonGubler ErichDonGubler marked this pull request as ready for review July 24, 2024 16:03
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner July 24, 2024 16:03
@ErichDonGubler ErichDonGubler merged commit 65b6e15 into gfx-rs:trunk Jul 24, 2024
25 checks passed
@ErichDonGubler ErichDonGubler deleted the ptr-cast-everywhere-plz branch July 24, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: refactor Making existing function faster or nicer
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants