Skip to content

Conversation

@Coca162
Copy link
Contributor

@Coca162 Coca162 commented Jan 2, 2026

Currently without_provenance/without_provenance_mut do not have a rustc_diagnostic_item so this change is dependent on them being added before being ready to be used.

changelog: [transmuting_null]: now checks for ptr::without_provenance and ptr::without_provenance_mut which create null pointers

…provenance_mut`

Currently `without_provenance`/`without_provenance_mut` do not have a `rustc_diagnostic_item` so this change is dependent on them being added before being ready to be used.

changelog: [`transmuting_null`]: now checks for [`ptr::without_provenance`](https://doc.rust-lang.org/core/ptr/fn.without_provenance.html) and [`ptr::without_provenance_mut`](https://doc.rust-lang.org/core/ptr/fn.without_provenance_mut.html) which create null pointers
Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
…_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
Coca162 added a commit to Coca162/rust that referenced this pull request Jan 2, 2026
…_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jan 3, 2026
…tics, r=Urgau

Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
rust-timer added a commit to rust-lang/rust that referenced this pull request Jan 3, 2026
Rollup merge of #150627 - Coca162:without_provenance_diagnostics, r=Urgau

Add diagnostic items for `without_provenance` and `without_provenance_mut`

Adds diagnostic items for `core::ptr::without_provenance` and `core::ptr::without_provenance_mut`. Will be used to enhance clippy lint `transmuting_null`, see rust-lang/rust-clippy#16336.
@Coca162
Copy link
Contributor Author

Coca162 commented Jan 3, 2026

Waiting for nightly version update

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.

1 participant