mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 23:17:50 +00:00
rust: update to 1.67.0
release notes: - https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html - https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1670-2023-01-26
This commit is contained in:
parent
8ecdbc78f5
commit
6100611e1d
@ -2,8 +2,8 @@
|
|||||||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="rust"
|
PKG_NAME="rust"
|
||||||
PKG_VERSION="1.66.1"
|
PKG_VERSION="1.67.0"
|
||||||
PKG_SHA256="5b3c933a94c72187705d4ee293198babfdd09442f5937fbd685db3a81f4959ba"
|
PKG_SHA256="d029f14fce45a2ec7a9a605d2a0a40aae4739cb2fdae29ee9f7a6e9025a7fde4"
|
||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
PKG_SITE="https://www.rust-lang.org"
|
PKG_SITE="https://www.rust-lang.org"
|
||||||
PKG_URL="https://static.rust-lang.org/dist/rustc-${PKG_VERSION}-src.tar.gz"
|
PKG_URL="https://static.rust-lang.org/dist/rustc-${PKG_VERSION}-src.tar.gz"
|
||||||
|
38
packages/rust/rust/patches/rust-0001-105624.patch
Normal file
38
packages/rust/rust/patches/rust-0001-105624.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From 675fa0b3dd5fe14b43ad5b7862f4528df7322468 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Goulet <michael@errs.io>
|
||||||
|
Date: Mon, 12 Dec 2022 18:29:33 +0000
|
||||||
|
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix=20unsoundness=20in=20bootstr?=
|
||||||
|
=?UTF-8?q?ap=20cache=20code?=
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
---
|
||||||
|
src/bootstrap/cache.rs | 8 ++++----
|
||||||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/bootstrap/cache.rs b/src/bootstrap/cache.rs
|
||||||
|
index be5c9bb078808..05f25af68ea8f 100644
|
||||||
|
--- a/src/bootstrap/cache.rs
|
||||||
|
+++ b/src/bootstrap/cache.rs
|
||||||
|
@@ -89,16 +89,16 @@ impl<T: Internable + Hash> Hash for Interned<T> {
|
||||||
|
|
||||||
|
impl<T: Internable + Deref> Deref for Interned<T> {
|
||||||
|
type Target = T::Target;
|
||||||
|
- fn deref(&self) -> &'static Self::Target {
|
||||||
|
+ fn deref(&self) -> &Self::Target {
|
||||||
|
let l = T::intern_cache().lock().unwrap();
|
||||||
|
- unsafe { mem::transmute::<&Self::Target, &'static Self::Target>(l.get(*self)) }
|
||||||
|
+ unsafe { mem::transmute::<&Self::Target, &Self::Target>(l.get(*self)) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<T: Internable + AsRef<U>, U: ?Sized> AsRef<U> for Interned<T> {
|
||||||
|
- fn as_ref(&self) -> &'static U {
|
||||||
|
+ fn as_ref(&self) -> &U {
|
||||||
|
let l = T::intern_cache().lock().unwrap();
|
||||||
|
- unsafe { mem::transmute::<&U, &'static U>(l.get(*self).as_ref()) }
|
||||||
|
+ unsafe { mem::transmute::<&U, &U>(l.get(*self).as_ref()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user