Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Update nightly rust used in CI (#11856)

Alex Crichton778771d2cdc8
diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml
index db7e3daf86..da13f69d84 100644
--- a/.github/actions/install-rust/action.yml
+++ b/.github/actions/install-rust/action.yml
@@ -32,7 +32,7 @@ runs:
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
- echo "version=nightly-2025-09-29" >> "$GITHUB_OUTPUT"
+ echo "version=nightly-2025-10-14" >> "$GITHUB_OUTPUT"
else
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
fi
diff --git a/cranelift/src/bugpoint.rs b/cranelift/src/bugpoint.rs
index ea48da608f..ed5546b6b9 100644
--- a/cranelift/src/bugpoint.rs
+++ b/cranelift/src/bugpoint.rs
@@ -996,7 +996,6 @@ impl<'a> CrashCheckContext<'a> {
}
}
- #[cfg_attr(test, expect(unreachable_code, reason = "test-specific code"))]
fn check_for_crash(&mut self, func: &Function) -> CheckResult {
self.context.clear();
@@ -1017,7 +1016,7 @@ impl<'a> CrashCheckContext<'a> {
}
#[cfg(test)]
- {
+ if true {
// For testing purposes we emulate a panic caused by the existence of
// a `call` instruction.
let contains_call = func.layout.blocks().any(|block| {
diff --git a/crates/wasmtime/src/lib.rs b/crates/wasmtime/src/lib.rs
index a108199ab7..e8245220b0 100644
--- a/crates/wasmtime/src/lib.rs
+++ b/crates/wasmtime/src/lib.rs
@@ -292,6 +292,17 @@
// and will prevent the doc build from failing.
#![cfg_attr(feature = "default", warn(rustdoc::broken_intra_doc_links))]
#![no_std]
+// Wasmtime liberally uses #[cfg]'d definitions of structures to uninhabited
+// types to reduce the total amount of #[cfg], but rustc warns that much usage
+// of these structures, rightfully, leads to unreachable code. This unreachable
+// code is only conditional, however, so it's generally just annoying to deal
+// with. Disable the `unreachable_code` lint in situations like this when some
+// major features are disabled. If all the features are enabled, though, we
+// still want to get warned about this.
+#![cfg_attr(
+ any(not(feature = "threads"), not(feature = "gc",)),
+ allow(unreachable_code, reason = "see comment")
+)]
#[cfg(feature = "std")]
#[macro_use]
diff --git a/crates/wasmtime/src/runtime/vm/component/libcalls.rs b/crates/wasmtime/src/runtime/vm/component/libcalls.rs
index 5996ba3d3b..08563dea82 100644
--- a/crates/wasmtime/src/runtime/vm/component/libcalls.rs
+++ b/crates/wasmtime/src/runtime/vm/component/libcalls.rs
@@ -91,6 +91,7 @@ mod trampolines {
)*
) => (
$(
+ #[allow(unused_variables, reason = "macro-generated")]
pub unsafe extern "C" fn $name(
vmctx: NonNull<VMComponentContext>
$(,$pname : signature!(@ty $param))*
diff --git a/crates/wasmtime/src/runtime/vm/libcalls.rs b/crates/wasmtime/src/runtime/vm/libcalls.rs
index 20b3e7154f..5c384f9b20 100644
--- a/crates/wasmtime/src/runtime/vm/libcalls.rs
+++ b/crates/wasmtime/src/runtime/vm/libcalls.rs
@@ -114,6 +114,7 @@ pub mod raw {
// implementation and automatically perform `catch_unwind` along
// with conversion of the return value in the face of traps.
#[allow(improper_ctypes_definitions, reason = "__m128i known not FFI-safe")]
+ #[allow(unused_variables, reason = "macro-generated")]
pub unsafe extern "C" fn $name(
vmctx: NonNull<VMContext>,
$( $pname : libcall!(@ty $param), )*
diff --git a/pulley/src/lib.rs b/pulley/src/lib.rs
index fe60c371be..d9a794a783 100644
--- a/pulley/src/lib.rs
+++ b/pulley/src/lib.rs
@@ -1412,7 +1412,7 @@ pub mod opcode;
pub use opcode::*;
#[cfg(any(feature = "encode", feature = "decode"))]
-pub(crate) unsafe fn unreachable_unchecked<T>() -> T {
+pub(crate) unsafe fn unreachable_unchecked() -> ! {
#[cfg(debug_assertions)]
unreachable!();