Skip to content

[🐛 Bug]: Selenium 4.37 (and master) fails to build in nightly-2025-07-07 #16488

@Felixoid

Description

@Felixoid

Description

https://github.com/SeleniumHQ/selenium/blob/trunk/rust/src/lib.rs#L628 causes the following issue:

Compiling selenium-manager v0.4.37 (/home/felixoid/.cache/yay/selenium-manager/src/selenium-selenium-4.37.0/rust)
error[E0658]: `let` expressions in this position are unstable
   --> src/lib.rs:628:24
    |
628 |                     && let Some(snap_path) = self.get_snap_path()
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

error[E0658]: `let` expressions in this position are unstable
  --> src/lock.rs:73:8
   |
73 |     if let Some(lock) = get_lock_path()
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

For more information about this error, try `rustc --explain E0658`.

Reproducible Code

rustup toolchain install nightly-2025-07-07
cd ${GIT_ROOT}
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!B-managerSelenium ManagerC-rustRust code is mostly Selenium ManagerI-defectSomething is not working as intendedOS-linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions