Skip to content

Obtaining the metadata of a const pointer is a const operation#17121

Merged
llogiq merged 1 commit into
rust-lang:masterfrom
samueltardieu:issues/17119
Jun 7, 2026
Merged

Obtaining the metadata of a const pointer is a const operation#17121
llogiq merged 1 commit into
rust-lang:masterfrom
samueltardieu:issues/17119

Conversation

@samueltardieu

@samueltardieu samueltardieu commented May 31, 2026

Copy link
Copy Markdown
Member

changelog: [missing_const_for_fn]: lint more cases involving pointer metadata (such as slices length)

Fixes #17119

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 31, 2026
@rustbot

rustbot commented May 31, 2026

Copy link
Copy Markdown
Collaborator

r? @llogiq

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 8 candidates
  • 8 candidates expanded to 8 candidates
  • Random selection from Jarcho, ada4a, dswij, llogiq

@github-actions

github-actions Bot commented May 31, 2026

Copy link
Copy Markdown

Lintcheck changes for f85bd2b

Lint Added Removed Changed
clippy::missing_const_for_fn 16 0 1

This comment will be updated if you push new changes

@samueltardieu

Copy link
Copy Markdown
Member Author

All 16 new lintcheck hits are correct.

@mi2ebi

mi2ebi commented Jun 1, 2026

Copy link
Copy Markdown

thank u <3

@llogiq

llogiq commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Thank you.

@llogiq llogiq added this pull request to the merge queue Jun 7, 2026
Merged via the queue into rust-lang:master with commit 20e2299 Jun 7, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 7, 2026
@samueltardieu samueltardieu deleted the issues/17119 branch June 7, 2026 13:37
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.

missing_const_for_fn not triggered for functions using as_bytes() with slice pattern matching

4 participants