Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly build fails #514

Closed
gwenn opened this issue Apr 25, 2019 · 1 comment
Closed

Nightly build fails #514

gwenn opened this issue Apr 25, 2019 · 1 comment

Comments

@gwenn
Copy link
Collaborator

gwenn commented Apr 25, 2019

https://travis-ci.org/jgallagher/rusqlite/jobs/524571469

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>]`

Seems related to:
rust-lang/regex#576

@gwenn gwenn mentioned this issue Jun 2, 2019
@gwenn
Copy link
Collaborator Author

gwenn commented Jun 26, 2019

Fixed in version 0.19.0

@gwenn gwenn closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant