[staging-next] postgresqlPackages.pgvecto-rs: fix build with rust 1.89 (#435945)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
diff --git a/crates/common/src/lib.rs b/crates/common/src/lib.rs
|
||||
index 18172b9..6fc7e82 100644
|
||||
--- a/crates/common/src/lib.rs
|
||||
+++ b/crates/common/src/lib.rs
|
||||
@@ -1,3 +1,4 @@
|
||||
+#![warn(dangerous_implicit_autorefs)]
|
||||
pub mod clean;
|
||||
pub mod dir_ops;
|
||||
pub mod file_atomic;
|
||||
diff --git a/src/lib.rs b/src/lib.rs
|
||||
index 068c65d..82609e9 100644
|
||||
--- a/src/lib.rs
|
||||
+++ b/src/lib.rs
|
||||
@@ -6,6 +6,7 @@
|
||||
#![allow(clippy::needless_range_loop)]
|
||||
#![allow(clippy::single_match)]
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
+#![warn(dangerous_implicit_autorefs)]
|
||||
|
||||
mod bgworker;
|
||||
mod datatype;
|
||||
@@ -27,6 +27,9 @@ buildPgrxExtension (finalAttrs: {
|
||||
(replaceVars ./0001-read-clang-flags-from-environment.diff {
|
||||
clang = lib.getExe clang;
|
||||
})
|
||||
# Rust 1.89 denies implicit autorefs by default, making the compilation fail.
|
||||
# This restores the behaviour of previous rust versions by making the lint throw a warning instead.
|
||||
./0002-allow-dangerous-implicit-autorefs.diff
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
||||
Reference in New Issue
Block a user