Files
nixpkgs/pkgs/servers/sql/postgresql/ext/pgvecto-rs/0002-allow-dangerous-implicit-autorefs.diff
Diogo Correia 3cdfa9471c postgresqlPackages.pgvecto-rs: fix build with rust 1.89
The `dangerous_implicit_autorefs` lint now causes a compile error [1],
which breaks pgvecto-rs.
This commit forces the lint to only throw a warning.

[1]: https://github.com/rust-lang/rust/pull/141661
2025-08-22 19:27:39 +01:00

22 lines
568 B
Diff

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;