From 2c431b385ec84ceba34581d3ebb9db2e6d06530e Mon Sep 17 00:00:00 2001 From: Pieter-Louis Schoeman <127837395+P8L1@users.noreply.github.com> Date: Sun, 3 May 2026 18:34:27 +0200 Subject: [PATCH] Update PinBorrowKind to use StableHash instead of old HashStable Refer to https://github.com/rust-lang/rust/commit/e7d28d3e9b6daaec005e0a56ca8998af10fe6fc3 --- compiler/rustc_middle/src/mir/syntax.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index c30dc64e22fe5..3ed79e8f7681b 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -184,7 +184,7 @@ pub enum BorrowKind { } #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, TyEncodable, TyDecodable)] -#[derive(Hash, HashStable)] +#[derive(Hash, StableHash)] pub enum PinBorrowKind { /// A user-written `&pin` borrow. ///