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 9c66ede commit 589e494
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion completion/tests/suggest.rs
Expand Up @@ -394,7 +394,6 @@ let { ab } = { x = 1, abc = "", abcd = 2 }

fn find_gluon_root() -> PathBuf {
use std::env;
use std::fs;
let mut dir = env::current_dir().unwrap();
while fs::metadata(dir.join("std")).is_err() {
dir = dir.parent().unwrap().into();
Expand Down
4 changes: 2 additions & 2 deletions vm/src/gc.rs
Expand Up @@ -942,12 +942,12 @@ mod tests {

impl PartialEq for Data_ {
fn eq(&self, other: &Data_) -> bool {
self.fields.ptr == other.fields.ptr
self.fields.0 == other.fields.0
}
}
impl fmt::Debug for Data_ {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.fields.ptr.fmt(f)
self.fields.0.fmt(f)
}
}

Expand Down
5 changes: 5 additions & 0 deletions vm/src/value.rs
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 589e494

Please sign in to comment.