Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed May 22, 2019
1 parent 5362db8 commit 33c9393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vm/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ mod gc_str {
#[derive(Copy, Clone, PartialEq)]
pub struct GcStr(GcPtr<ValueArray>);

// Needed due to https://github.com/rust-lang/rust/pull/60444, unsure if that is due to a bug
// or not
unsafe impl Send for GcStr {}
unsafe impl Sync for GcStr {}

impl fmt::Debug for GcStr {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("GcStr").field(&&**self).finish()
Expand Down

0 comments on commit 33c9393

Please sign in to comment.