-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Description
When using scryer-prolog as a dependency with default-features = false
, compilation fails with thread safety errors in arena.rs
. The error occurs with Rust 1.83.0.
error[E0277]: `*const u8` cannot be shared between threads safely
--> src/arena.rs:67:31
|
67 | static GLOBAL_ATOM_TABLE: RwLock<Weak<F64Table>> = RwLock::new(Weak::new());
| ^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely
Reproduction:
- Create new Rust project
- Add dependency:
[dependencies.scryer-prolog]
default-features = false
git = "https://github.com/mthom/scryer-prolog"
branch = "master"
- Run
cargo build
Environment:
- Rust: 1.83.0
- OS: Ubuntu 22.04
- Architecture: x86_64
Is this normal? What am I missing?
bakaq
Metadata
Metadata
Assignees
Labels
No labels