From 8c654e5d6bdcbf0be8ee440d4e621c11586f9368 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 21 Sep 2023 17:18:45 +0000 Subject: [PATCH] Prepare for a breaking change in the Rust compiler. The soundness fix in rust-lang/rust#115008 will cause rorm-sql to break, even though it is not unsound. The missing bound is very hard to abuse, but still a soundness hole in our type system. It will likely take 12 weeks before a stable compiler with the soundness fix is shipped. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c7e65d5..1b02253 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -380,7 +380,7 @@ impl DBImpl { **Parameter**: - `table_name`: Name of the table to delete from. */ - pub fn delete<'until_build, 'post_query>( + pub fn delete<'until_build, 'post_query: 'until_build>( &self, table_name: &'until_build str, ) -> impl Delete<'until_build, 'post_query> { @@ -405,7 +405,7 @@ impl DBImpl { **Parameter**: - `table_name`: Name of the table the updates should be executed for. */ - pub fn update<'until_build, 'post_query>( + pub fn update<'until_build, 'post_query: 'until_build>( &self, table_name: &'until_build str, ) -> impl Update<'until_build, 'post_query> {