-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTBFS with rust-1.71.0 #5861
Comments
Fixed here: |
Description: Run cargo update --manifest-path=./src/Cargo.toml. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Related: 389ds#5853 Fixes: 389ds#5861 Reviewed by: ?
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Related: 389ds#5853 Fixes: 389ds#5861 Reviewed by: ?
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Related: 389ds#5853 Fixes: 389ds#5861 Reviewed by: ?
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
@droideck, could you please backport it down to 1.4.3? rust-1.71 is already in 8.9. |
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
Description: Run cargo update --manifest-path=./src/Cargo.toml. Add minimum supported rust version field to the manifests. Fix minor 'variable does not need to be mutable' error. Another error: error: using `.borrow()` on a double reference, which returns `&concread::cowcell::CowCellReadTxn<CacheStats>` instead of borrowing the inner type We're getting the error about borrowing a double reference because we're trying to borrow a type that is already a reference. Fix - use the type directly. Set rust-version to 1.70 for better compatibility. Related: #5853 Fixes: #5861 Reviewed by: @vashirov (Thanks!), @Firstyear (Thanks for the rust-version idea!)
This commit changes minimum rust-version to 1.70 . It results in a fail to build on RHEL9.2 (rust 1.66.1):
|
@aivanov389, could you please try with this patch? diff --git a/src/librnsslapd/Cargo.toml b/src/librnsslapd/Cargo.toml
index c18ab7fc8..11bb9afe7 100644
--- a/src/librnsslapd/Cargo.toml
+++ b/src/librnsslapd/Cargo.toml
@@ -2,7 +2,6 @@
name = "librnsslapd"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
build = "build.rs"
diff --git a/src/librslapd/Cargo.toml b/src/librslapd/Cargo.toml
index fb445c251..15c00a47b 100644
--- a/src/librslapd/Cargo.toml
+++ b/src/librslapd/Cargo.toml
@@ -2,7 +2,6 @@
name = "librslapd"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
build = "build.rs"
diff --git a/src/plugins/entryuuid/Cargo.toml b/src/plugins/entryuuid/Cargo.toml
index f0d8e9f2a..c43d7a771 100644
--- a/src/plugins/entryuuid/Cargo.toml
+++ b/src/plugins/entryuuid/Cargo.toml
@@ -2,7 +2,6 @@
name = "entryuuid"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/plugins/entryuuid_syntax/Cargo.toml b/src/plugins/entryuuid_syntax/Cargo.toml
index d80b59bf1..f7d3d64c9 100644
--- a/src/plugins/entryuuid_syntax/Cargo.toml
+++ b/src/plugins/entryuuid_syntax/Cargo.toml
@@ -2,7 +2,6 @@
name = "entryuuid_syntax"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/plugins/pwdchan/Cargo.toml b/src/plugins/pwdchan/Cargo.toml
index 3cda69f22..40d8a54aa 100644
--- a/src/plugins/pwdchan/Cargo.toml
+++ b/src/plugins/pwdchan/Cargo.toml
@@ -2,7 +2,6 @@
name = "pwdchan"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/slapd/Cargo.toml b/src/slapd/Cargo.toml
index 39b6fdd1d..a18cb7626 100644
--- a/src/slapd/Cargo.toml
+++ b/src/slapd/Cargo.toml
@@ -2,7 +2,6 @@
name = "slapd"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/slapi_r_plugin/Cargo.toml b/src/slapi_r_plugin/Cargo.toml
index 024bd464a..9d197ec85 100644
--- a/src/slapi_r_plugin/Cargo.toml
+++ b/src/slapi_r_plugin/Cargo.toml
@@ -2,7 +2,6 @@
name = "slapi_r_plugin"
version = "0.1.0"
authors = ["William Brown <william@blackhats.net.au>"]
-rust-version = "1.70"
edition = "2018"
build = "build.rs" @droideck, rust-1.71 won't land in 9.2.z, in fact we have the same issue there. As I mentioned in #5854 (comment), we should be careful with setting |
Yep, it works with your patch. And it does also compile correctly if i change the minimum version to 1.66:
So it's really just a rust version difference between RHEL production and CentOS9 Stream it seems... |
Totally agree. I was planning to do that but the pre-PTO mindset had failed me... Sorry :( |
Description: We should be careful with rust-version manifest field on older 389-ds-base versions as it's harder to predict at which point in time Rust was updated in some older environments. Related: 389ds#5861 Reviewed by: ?
Issue Description
Reported in https://bugzilla.redhat.com/show_bug.cgi?id=2225532
The text was updated successfully, but these errors were encountered: