Skip to content

Commit

Permalink
Merge pull request Manishearth#82 from Razican/dep_upgrade
Browse files Browse the repository at this point in the history
Upgraded syn/quote dependencies for gc_derive
  • Loading branch information
Manishearth authored Apr 17, 2020
2 parents 8b56408 + 1d51370 commit 80e35cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion gc/tests/finalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
extern crate gc_derive;
extern crate gc;

use gc::{Finalize, Trace};
use std::cell::Cell;
use gc::Finalize;

#[derive(PartialEq, Eq, Debug, Clone, Copy)]
struct Flags(i32, i32);
Expand Down Expand Up @@ -40,6 +40,9 @@ impl Finalize for B {
}
}

#[derive(Trace, Finalize)]
struct X(Box<dyn Trace>);

#[test]
fn drop_triggers_finalize() {
FLAGS.with(|f| assert_eq!(f.get(), Flags(0, 0)));
Expand Down
8 changes: 4 additions & 4 deletions gc_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "gc_derive"
proc-macro = true

[dependencies]
syn = "0.15"
proc-macro2 = "0.4"
quote = "0.6"
synstructure = "0.10"
syn = "1.0"
proc-macro2 = "1.0"
quote = "1.0"
synstructure = "0.12"

0 comments on commit 80e35cd

Please sign in to comment.