gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo build | |
Compiling temple v0.3.1 (/Users/benw/Projects/temple) | |
error[E0277]: `*mut rlua::ffi::lua_State` cannot be shared between threads safely | |
--> src/main.rs:145:13 | |
| | |
145 | env.add_filter( | |
| ^^^^^^^^^^ `*mut rlua::ffi::lua_State` cannot be shared between threads safely | |
| | |
= help: within `LuaFunction<'_>`, the trait `Sync` is not implemented for `*mut rlua::ffi::lua_State` | |
= note: required because it appears within the type `LuaContext<'_>` | |
= note: required because it appears within the type `rlua::types::LuaRef<'_>` | |
= note: required because it appears within the type `LuaFunction<'_>` | |
= note: required because of the requirements on the impl of `Send` for `&LuaFunction<'_>` | |
= note: required because it appears within the type `[closure@src/main.rs:147:13: 153:14]` | |
= note: required because of the requirements on the impl of `minijinja::filters::Filter<std::string::String, std::string::String, (std::string::String,)>` for `[closure@src/main.rs:147:13: 153:14]` | |
error[E0277]: `Cell<&()>` cannot be shared between threads safely | |
--> src/main.rs:145:13 | |
| | |
145 | env.add_filter( | |
| ^^^^^^^^^^ `Cell<&()>` cannot be shared between threads safely | |
| | |
= help: within `LuaFunction<'_>`, the trait `Sync` is not implemented for `Cell<&()>` | |
= note: required because it appears within the type `PhantomData<Cell<&()>>` | |
= note: required because it appears within the type `LuaContext<'_>` | |
= note: required because it appears within the type `rlua::types::LuaRef<'_>` | |
= note: required because it appears within the type `LuaFunction<'_>` | |
= note: required because of the requirements on the impl of `Send` for `&LuaFunction<'_>` | |
= note: required because it appears within the type `[closure@src/main.rs:147:13: 153:14]` | |
= note: required because of the requirements on the impl of `minijinja::filters::Filter<std::string::String, std::string::String, (std::string::String,)>` for `[closure@src/main.rs:147:13: 153:14]` | |
error[E0277]: `*mut PhantomData<UnsafeCell<()>>` cannot be shared between threads safely | |
--> src/main.rs:145:13 | |
| | |
145 | env.add_filter( | |
| ^^^^^^^^^^ `*mut PhantomData<UnsafeCell<()>>` cannot be shared between threads safely | |
| | |
= help: within `LuaFunction<'_>`, the trait `Sync` is not implemented for `*mut PhantomData<UnsafeCell<()>>` | |
= note: required because it appears within the type `PhantomData<*mut PhantomData<UnsafeCell<()>>>` | |
= note: required because it appears within the type `LuaContext<'_>` | |
= note: required because it appears within the type `rlua::types::LuaRef<'_>` | |
= note: required because it appears within the type `LuaFunction<'_>` | |
= note: required because of the requirements on the impl of `Send` for `&LuaFunction<'_>` | |
= note: required because it appears within the type `[closure@src/main.rs:147:13: 153:14]` | |
= note: required because of the requirements on the impl of `minijinja::filters::Filter<std::string::String, std::string::String, (std::string::String,)>` for `[closure@src/main.rs:147:13: 153:14]` | |
For more information about this error, try `rustc --explain E0277`. | |
error: could not compile `temple` due to 3 previous errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment