rust-lang / rust-lang/rust

Error adding `size_of` and `size_of_val` and `align_of` and `align_of_val` to the common prelude

Open
#127,406 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-discussion
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Since https://github.com/rust-lang/rust/pull/123168 , All prelude of nightly channel will export size_of and size_of_val and align_of and align_of_val . This clearly leads to issues with the repeat build of code developed on nightly.

Possible impacts:
https://github.com/microsoft/windows-rs/issues/3076

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked Rust pull request 123168 to understand the nightly prelude change, then review the reported impact in microsoft/windows-rs issue 3076. The issue does not name source files or tests; completion would require determining how the repeat-build breakage should be addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.