You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the type `std::cell::UnsafeCell<std::option::Option<std::boxed::Box<std::cell::RefCell<regex::exec::ProgramCacheInner>>>>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
--> src/functions.rs:635:12
|
635 | db.create_scalar_function("regexp", 2, true, move |ctx| {
| ^^^^^^^^^^^^^^^^^^^^^^ `std::cell::UnsafeCell<std::option::Option<std::boxed::Box<std::cell::RefCell<regex::exec::ProgramCacheInner>>>>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
|
= help: within `(std::string::String, regex::re_unicode::Regex)`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<std::option::Option<std::boxed::Box<std::cell::RefCell<regex::exec::ProgramCacheInner>>>>`
= note: required because it appears within the type `thread_local::CachedThreadLocal<std::cell::RefCell<regex::exec::ProgramCacheInner>>`
= note: required because it appears within the type `regex::exec::Exec`
= note: required because it appears within the type `regex::re_unicode::Regex`
= note: required because it appears within the type `(std::string::String, regex::re_unicode::Regex)`
= note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `std::ptr::NonNull<(std::string::String, regex::re_unicode::Regex)>`
= note: required because it appears within the type `hashbrown::raw::RawTable<(std::string::String, regex::re_unicode::Regex)>`
= note: required because it appears within the type `hashbrown::map::HashMap<std::string::String, regex::re_unicode::Regex, std::collections::hash_map::RandomState>`
= note: required because it appears within the type `std::collections::HashMap<std::string::String, regex::re_unicode::Regex>`
= note: required because it appears within the type `[closure@src/functions.rs:635:54: 653:10 cached_regexes:std::collections::HashMap<std::string::String, regex::re_unicode::Regex>]`
https://travis-ci.org/jgallagher/rusqlite/jobs/524571469
Seems related to:
rust-lang/regex#576
The text was updated successfully, but these errors were encountered: