From fd7da21c53d991f80da7063efd2e2de07a2d0f4d Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 1 May 2026 16:29:44 +1000 Subject: [PATCH] Rename `rustc_macros::hash_stable` as `stable_hash`. Part of MCP 983. --- compiler/rustc_macros/src/lib.rs | 6 +++--- .../rustc_macros/src/{hash_stable.rs => stable_hash.rs} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename compiler/rustc_macros/src/{hash_stable.rs => stable_hash.rs} (100%) diff --git a/compiler/rustc_macros/src/lib.rs b/compiler/rustc_macros/src/lib.rs index eff2581979df..e685545deb7e 100644 --- a/compiler/rustc_macros/src/lib.rs +++ b/compiler/rustc_macros/src/lib.rs @@ -11,11 +11,11 @@ mod current_version; mod diagnostics; mod extension; -mod hash_stable; mod lift; mod print_attribute; mod query; mod serialize; +mod stable_hash; mod symbols; mod type_foldable; mod type_visitable; @@ -59,10 +59,10 @@ pub fn extension(attr: TokenStream, input: TokenStream) -> TokenStream { } decl_derive!( - [StableHash, attributes(stable_hasher)] => hash_stable::hash_stable_derive + [StableHash, attributes(stable_hasher)] => stable_hash::hash_stable_derive ); decl_derive!( - [StableHash_NoContext, attributes(stable_hasher)] => hash_stable::hash_stable_no_context_derive + [StableHash_NoContext, attributes(stable_hasher)] => stable_hash::hash_stable_no_context_derive ); // Encoding and Decoding derives diff --git a/compiler/rustc_macros/src/hash_stable.rs b/compiler/rustc_macros/src/stable_hash.rs similarity index 100% rename from compiler/rustc_macros/src/hash_stable.rs rename to compiler/rustc_macros/src/stable_hash.rs