Skip to content

cast_slice_from_raw_parts: check for implicit cast to raw slice pointer #15437

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zihan0822
Copy link
Contributor

@zihan0822 zihan0822 commented Aug 7, 2025

Fixes: #15127
changelog: [cast_slice_from_raw_parts]: check for implicit cast to raw slice pointer
changelog: [cast_slice_from_raw_parts]: properly select std/core

…nter

changelog: [`cast_slice_from_raw_parts`]: check for implicit cast to raw slice pointer

Signed-off-by: Zihan <[email protected]>
@rustbot
Copy link
Collaborator

rustbot commented Aug 7, 2025

r? @blyxyas

rustbot has assigned @blyxyas.
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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 7, 2025
Copy link

github-actions bot commented Aug 7, 2025

Lintcheck changes for b2e660b

Lint Added Removed Changed
clippy::cast_slice_from_raw_parts 3 0 0

This comment will be updated if you push new changes

@zihan0822 zihan0822 force-pushed the implicit-cast-slice-from-raw-parts branch from 8824a80 to b2e660b Compare August 8, 2025 14:43
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cast_slice_from_raw_parts not triggered for equivalent cast-less conversions
3 participants