256. Hash is a std trait in std.derive, not a compiler trait name (2026-11-22)
- Decision.
pub trait Hash: fn hash(self) -> U64lives inspec/std/derive.cpwith impls forInt,U64,Char,BoolandStr(splitmix64) andhash_fields, as decision 28.8 describes; the prelude brings it in withuse std.derive.{Hash}, and"Hash"leavesTRAIT_NAMESincrates/cpl-check/src/prelude.rs. The orphan rule (R08.5.2) now asks which names the file declares (Env::declared), not every name it can see, soimpl Hash for F64is still an orphan whenHashcomes in through the prelude or ause. - Why. The coordinator's direction: build
Hashon the general mechanism a library can declare, without raisingprelude_privilege. Structs keep their structuralHashforHashMapkeys (implements_trait, by name) until the compiler's trait-default work (compiler worklog,Gen/Hashreply) makes it a default method. - Reverse. Put
"Hash"back inTRAIT_NAMES, delete the trait, its impls,mix64andhash_fieldsfromderive.cpand the prelude line;Env::declaredcan stay (it is the correct orphan test either way).