diff --git a/README.md b/README.md index 2a4a01c4..7bd33a4a 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ extreme::run(async move { # minimum supported Rust version (MSRV) -We support Rust 1.57.0 and up. +We support Rust 1.62 and up. # architecture diff --git a/scripts/cross_compile.sh b/scripts/cross_compile.sh index 7f2f0c20..bb257f28 100755 --- a/scripts/cross_compile.sh +++ b/scripts/cross_compile.sh @@ -12,10 +12,10 @@ rustup update --no-self-update RUSTFLAGS="--cfg miri" cargo check -rustup toolchain install 1.57.0 --no-self-update +rustup toolchain install 1.62 --no-self-update cargo clean rm Cargo.lock -cargo +1.57.0 check +cargo +1.62 check for target in $targets; do echo "setting up $target..." diff --git a/src/ebr/atomic.rs b/src/ebr/atomic.rs index ff07621e..9a04aac2 100644 --- a/src/ebr/atomic.rs +++ b/src/ebr/atomic.rs @@ -720,7 +720,7 @@ impl<'g, T> Shared<'g, T> { impl<'g, T: ?Sized + Pointable> Shared<'g, T> { /// Returns a new null pointer. - pub(crate) fn null() -> Shared<'g, T> { + pub(crate) const fn null() -> Shared<'g, T> { Shared { data: 0, _marker: PhantomData } }