stale-twilight-79248
12/19/2025, 5:01 PMerror[E0658]: use of unstable library feature `result_flattening`
...
error: could not compile `sharded_lmdb` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...wide-midnight-78598
12/19/2025, 5:03 PMmain?stale-twilight-79248
12/19/2025, 5:03 PM pants fmt
[=== 00:00 Building native code... ===]
Downloaded pyo3-build-config v0.27.2
Downloaded pyo3-macros-backend v0.27.2
Downloaded pyo3-macros v0.27.2
Downloaded pyo3-ffi v0.27.2
Downloaded pyo3 v0.27.2
Downloaded 5 crates (1.3MiB) in 3.71s (largest was `pyo3` at 1.1MiB)
Compiling pyo3-build-config v0.27.2
Compiling sharded_lmdb v0.0.1 (/Users/alex/Projects/pants/src/rust/sharded_lmdb)
Compiling logging v0.0.1 (/Users/alex/Projects/pants/src/rust/logging)
Compiling generic-array v0.14.7
Compiling nails v0.13.0
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-dockerfile v0.3.0 (<https://github.com/pantsbuild/tree-sitter-dockerfile.git?rev=508588913c93a30e7ef09a4ac3ecdee955b7b950#50858891>)
Compiling tree-sitter-python v0.25.0
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:300:14
|
300 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:370:14
|
370 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:430:14
|
430 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:517:14
|
517 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:613:14
|
613 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
Compiling uname v0.1.1
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:636:14
|
636 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
error[E0658]: use of unstable library feature `result_flattening`
--> sharded_lmdb/src/lib.rs:689:14
|
689 | .flatten()
| ^^^^^^^
|
= note: see issue #70142 <<https://github.com/rust-lang/rust/issues/70142>> for more information
Compiling rayon-core v1.12.1
Compiling peg-runtime v0.8.5
Compiling tree-sitter-language v0.1.5
Compiling parking v2.2.1
Compiling serde_spanned v0.6.9
For more information about this error, try `rustc --explain E0658`.
error: could not compile `sharded_lmdb` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...wide-midnight-78598
12/19/2025, 5:19 PMstale-twilight-79248
12/19/2025, 5:20 PMwide-midnight-78598
12/19/2025, 5:20 PMwide-midnight-78598
12/19/2025, 5:23 PM{ROOT}/pants or ROOT}/cargowide-midnight-78598
12/19/2025, 5:23 PMstale-twilight-79248
12/19/2025, 5:39 PMcd src/rust
cargo build --features=extension-module --release -p engine -p client -p sandboxer
as specified in {ROOT}/pants shell sources, produces the same errorshappy-kitchen-89482
12/19/2025, 5:42 PMresult_flattening was stabilized in Rust 1.74.0 and we are well past thathappy-kitchen-89482
12/19/2025, 5:42 PMhappy-kitchen-89482
12/19/2025, 5:43 PMsrc/rust/rust-toolchain ?stale-twilight-79248
12/19/2025, 5:56 PMsrc/rust/rust-toolchain match what's on github:
[toolchain]
channel = "1.91.0"
# NB: We don't list the components (namely `clippy` and `rustfmt`) and instead rely on either the
# the profile being "default" (by-and-large the default profile) or the nice error message from
# `cargo fmt` and `cargo clippy` if the required component isn't installed
# This is so the Pants-compiled engine (which uses the "minimal" profile) doesn't download/install
# these as they are unnecessary.
my rustup stable toolchain version is 1.91.1 and my rustup nightly toolchain is 1.93.0stale-twilight-79248
12/19/2025, 5:56 PMrustup update and it bumped them to 1.92 .x and 1.94,x respectivelystale-twilight-79248
12/19/2025, 5:56 PMstale-twilight-79248
12/19/2025, 6:02 PMrustc points to homebrew... and is v1.88
i don't recall having installed rust via homebrew, but i guess that's the issuehappy-kitchen-89482
12/19/2025, 6:14 PMhappy-kitchen-89482
12/19/2025, 6:15 PMhappy-kitchen-89482
12/19/2025, 6:19 PMrustc and cargo and friends are pointing to homebrew and not rustup-controlled toolchainsstale-twilight-79248
12/19/2025, 6:26 PMrust-toolchain file. uninstalling homebrew's rust allowedrustup's rust to kick in and it worked immediately. pants was able to successfully compile.
maybe there's a way for the bootstrapping logic to detect if it's running cargo/rustc provided by rustup and warn if it isn't... I'm not really sure.stale-twilight-79248
12/19/2025, 6:26 PMhappy-kitchen-89482
12/19/2025, 6:45 PMwide-midnight-78598
12/19/2025, 10:34 PMwide-midnight-78598
12/19/2025, 10:34 PM