Bump MSRV to 1.62

This commit is contained in:
Tyler Neely 2022-10-02 10:46:40 +02:00
parent 39b4994975
commit 2c27d33dd7
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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..."

View File

@ -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 }
}