Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit c9eb0e3

Browse files
committed
Enable the compile-test tests.
Most are still failing.
1 parent 58a667e commit c9eb0e3

14 files changed

Lines changed: 14 additions & 14 deletions

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ system-luajit=["mlua/luajit"]
3737
[dev-dependencies]
3838
rustyline = "13.0"
3939
#criterion = "0.5.1"
40-
#compiletest_rs = { version = "0.10.2", features = ["stable"] }
40+
compiletest_rs = { version = "0.10.2", features = ["stable"] }
4141
bstr = "1.9.0"

tests/compile-fail/context_invariance_inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::Lua;
3+
use rlua::{Lua, RluaCompat};
44

55
fn main() {
66
Lua::new().context(|lua1| {

tests/compile-fail/context_invariance_outer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::Lua;
3+
use rlua::{Lua, RluaCompat};
44

55
fn main() {
66
Lua::new().context(|lua1| {

tests/compile-fail/context_nounwindsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate rlua;
22

33
use std::panic::catch_unwind;
44

5-
use rlua::Lua;
5+
use rlua::{Lua, RluaCompat};
66

77
fn main() {
88
Lua::new().context(|lua| {

tests/compile-fail/function_borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::{Function, Lua, Result};
3+
use rlua::{Function, Lua, Result, RluaCompat};
44

55
fn main() {
66
struct Test(i32);

tests/compile-fail/lua_norefunwindsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate rlua;
22

33
use std::panic::catch_unwind;
44

5-
use rlua::Lua;
5+
use rlua::{Lua, RluaCompat};
66

77
fn main() {
88
let lua = Lua::new();

tests/compile-fail/scope_callback_capture.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::{Lua, Table};
3+
use rlua::{Lua, Table, RluaCompat};
44

55
fn main() {
66
struct Test {

tests/compile-fail/scope_callback_inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::{Lua, Table};
3+
use rlua::{Lua, Table, RluaCompat};
44

55
fn main() {
66
struct Test {

tests/compile-fail/scope_callback_outer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::{Lua, Table};
3+
use rlua::{Lua, Table, RluaCompat};
44

55
fn main() {
66
struct Test {

tests/compile-fail/scope_invariance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extern crate rlua;
22

3-
use rlua::Lua;
3+
use rlua::{Lua, RluaCompat};
44

55
fn main() {
66
struct Test {

0 commit comments

Comments
 (0)