Issue #3036: std instantiated per representation, Shared and Locked allowed in std’s Nikaia half

Open and answer this issue on GitHub.

async, blocked · opened 2026-12-01 · updated 2026-12-01 · 0 comments

Part of #3027. Decided in ADR-threads-v1 D5. Waits for “Function instances per representation and crossing unification for mixed classes”.

Why: std’s Nikaia half may not lower differently per build option, which rules out Shared and Locked there; D5 makes std’s counted and locked types take the representation as a type parameter, instantiated by rustc in the program’s crate.

To build

  1. std’s types and functions holding a count or a lock take the representation parameter; the compiled std in the cache stays one per machine.
  2. Allow Shared/Locked in std’s Nikaia half; the representation at each use is what the analysis picks.
  3. The toolchain’s own package is no longer lowered at a setting of its own (ADR-363).

Done when: one compiled std serves programs whose values get both representations; a std function using Locked lowers once and is instantiated per use; the cache key has no representation dimension.


Generated by Claude Code

Back to Open Issues