Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit c02f24c

Browse files
committed
update to Rust 1.42.0 and fix test link errors
More spooky action at a distance when it comes to exporting dynamic symbols 🙃 Ref: rust-lang/rust#58037
1 parent 29542bb commit c02f24c

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

helpers/indent.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cleanup() {
1010
}
1111
trap cleanup 1 2 3 6 15
1212

13-
RUSTFMT_VERSION=1.4.9-stable
13+
RUSTFMT_VERSION=1.4.11-stable
1414

1515
if ! rustfmt --version | grep -q "rustfmt $RUSTFMT_VERSION"; then
1616
echo "indent requires rustfmt $RUSTFMT_VERSION"

lucet-runtime/lucet-runtime-tests/src/memory.rs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ macro_rules! memory_tests {
77
use $TestRegion as TestRegion;
88
use $crate::build::test_module_wasm;
99

10+
#[test]
11+
fn ensure_linked() {
12+
lucet_runtime::lucet_internal_ensure_linked();
13+
}
14+
1015
#[test]
1116
fn current_memory_hostcall() {
1217
let module = test_module_wasm("memory", "current_memory.wat")

lucet-runtime/lucet-runtime-tests/src/stack.rs

+5
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ macro_rules! stack_tests {
121121
}
122122
}
123123

124+
#[test]
125+
fn ensure_linked() {
126+
lucet_runtime::lucet_internal_ensure_linked();
127+
}
128+
124129
#[test]
125130
fn expect_ok_locals3_1() {
126131
expect_ok(stack_testcase(3).expect("generate stack_testcase 3"), 1);

lucet-runtime/lucet-runtime-tests/src/start.rs

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ macro_rules! start_tests {
66
use $TestRegion as TestRegion;
77
use $crate::build::test_module_wasm;
88

9+
#[test]
10+
fn ensure_linked() {
11+
lucet_runtime::lucet_internal_ensure_linked();
12+
}
13+
914
#[test]
1015
fn global_init() {
1116
let module =

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.40.0
1+
1.42.0

0 commit comments

Comments
 (0)