diff --git a/gc/tests/finalize.rs b/gc/tests/finalize.rs index 448ea86..92e99d3 100644 --- a/gc/tests/finalize.rs +++ b/gc/tests/finalize.rs @@ -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); @@ -40,6 +40,9 @@ impl Finalize for B { } } +#[derive(Trace, Finalize)] +struct X(Box); + #[test] fn drop_triggers_finalize() { FLAGS.with(|f| assert_eq!(f.get(), Flags(0, 0))); diff --git a/gc_derive/Cargo.toml b/gc_derive/Cargo.toml index 8153155..cbb1cda 100644 --- a/gc_derive/Cargo.toml +++ b/gc_derive/Cargo.toml @@ -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"