Skip to content

Commit c8a7aa9

Browse files
committed
Update compile tests (temporary set TRYBUILD=overwrite)
1 parent a52135b commit c8a7aa9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
- name: Run compile tests (macos lua53)
6969
if: ${{ matrix.os == 'macos-latest' && matrix.lua == 'lua53' }}
7070
run: |
71-
cargo test --release --features "${{ matrix.lua }} vendored" -- --ignored
72-
cargo test --release --features "${{ matrix.lua }} vendored async send" -- --ignored
71+
TRYBUILD=overwrite cargo test --release --features "${{ matrix.lua }} vendored" -- --ignored
72+
TRYBUILD=overwrite cargo test --release --features "${{ matrix.lua }} vendored async send" -- --ignored
7373
shell: bash
7474

7575
test_luajit_macos:

tests/compile/lua_norefunwindsafe.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutabili
44
7 | catch_unwind(|| lua.create_table().unwrap());
55
| ^^^^^^^^^^^^ `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
66
|
7-
::: $RUST/src/libstd/panic.rs
7+
::: $RUST/std/src/panic.rs
88
|
99
| pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
1010
| ---------- required by this bound in `std::panic::catch_unwind`

tests/compile/ref_nounwindsafe.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0277]: the type `std::cell::UnsafeCell<()>` may contain interior mutabili
44
8 | catch_unwind(move || table.set("a", "b").unwrap());
55
| ^^^^^^^^^^^^ `std::cell::UnsafeCell<()>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
66
|
7-
::: $RUST/src/libstd/panic.rs
7+
::: $RUST/std/src/panic.rs
88
|
99
| pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
1010
| ---------- required by this bound in `std::panic::catch_unwind`

0 commit comments

Comments
 (0)