diff --git a/Cargo.lock b/Cargo.lock index 92416cf19c2..efe7f08732c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3245,6 +3245,7 @@ name = "rustc_driver" version = "0.0.0" dependencies = [ "rustc_driver_impl", + "rustix 0.37.11", ] [[package]] @@ -4305,9 +4306,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.21" +version = "0.37.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25693a73057a1b4cb56179dd3c7ea21a7c6c5ee7d85781f5749b46f34b79c" +checksum = "85597d61f83914ddeba6a47b3b8ffe7365107221c2e557ed94426489fefb5f77" dependencies = [ "bitflags 1.3.2", "errno", @@ -4747,7 +4748,7 @@ dependencies = [ "cfg-if", "fastrand", "redox_syscall 0.3.5", - "rustix 0.37.21", + "rustix 0.37.11", "windows-sys 0.48.0", ] @@ -4788,7 +4789,7 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237" dependencies = [ - "rustix 0.37.21", + "rustix 0.37.11", "windows-sys 0.48.0", ] diff --git a/compiler/rustc_driver/Cargo.toml b/compiler/rustc_driver/Cargo.toml index d7c295418ba..86a54f6befd 100644 --- a/compiler/rustc_driver/Cargo.toml +++ b/compiler/rustc_driver/Cargo.toml @@ -8,3 +8,6 @@ crate-type = ["dylib"] [dependencies] rustc_driver_impl = { path = "../rustc_driver_impl" } +# FIXME(Nilstrieb): 0.37.12 adds eventfd support for FreeBSD, +# but FreeBSD 12 does not support it: https://github.com/bytecodealliance/rustix/issues/716 +rustix = "=0.37.11"