From 986b048560f6f1a6f0fbe2724d3b7c59207e75b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Wed, 20 Sep 2023 17:33:34 +0000 Subject: [PATCH] Bump `rust-version` to 1.71 (#3290) * Bump `rust-version` to 1.71 * cargo clippy --- Cargo.toml | 2 +- boa_engine/src/vm/code_block.rs | 2 +- boa_engine/src/vm/opcode/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 644088cec27..7bdf9123fc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ members = [ [workspace.package] edition = "2021" version = "0.17.0" -rust-version = "1.66" +rust-version = "1.71" authors = ["boa-dev"] repository = "https://github.com/boa-dev/boa" license = "Unlicense OR MIT" diff --git a/boa_engine/src/vm/code_block.rs b/boa_engine/src/vm/code_block.rs index b52229e0b7c..f4ca2fb62e5 100644 --- a/boa_engine/src/vm/code_block.rs +++ b/boa_engine/src/vm/code_block.rs @@ -264,7 +264,7 @@ impl CodeBlock { /// # Safety /// /// Does not check if read happens out-of-bounds. - pub(crate) unsafe fn read_unchecked(&self, offset: usize) -> T + pub(crate) const unsafe fn read_unchecked(&self, offset: usize) -> T where T: Readable, { diff --git a/boa_engine/src/vm/opcode/mod.rs b/boa_engine/src/vm/opcode/mod.rs index 8dbdb1172ed..6d2a1134403 100644 --- a/boa_engine/src/vm/opcode/mod.rs +++ b/boa_engine/src/vm/opcode/mod.rs @@ -96,7 +96,7 @@ use thin_vec::ThinVec; /// # Safety /// /// Does not check if read happens out-of-bounds. -pub(crate) unsafe fn read_unchecked(bytes: &[u8], offset: usize) -> T +pub(crate) const unsafe fn read_unchecked(bytes: &[u8], offset: usize) -> T where T: Readable, {