From c742cf9aeca97967ec98aaf707b3b9fb5ea92a44 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 7 Jan 2017 23:51:21 +0100 Subject: [PATCH 1/2] derive: use latest compiletest_rs crate Version 2.2 was not compiling any more: https://github.com/laumann/compiletest-rs/issues/51 --- derive/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 7309901..ecbcee4 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -14,7 +14,7 @@ quote = "0.1.3" syn = "0.7.0" [dev-dependencies] -compiletest_rs = "0.2.2" +compiletest_rs = "0.2.5" [dev-dependencies.num] path = ".." From 9aced4066e15de4706e211aa6cdad1453b56a1a2 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 7 Jan 2017 23:51:55 +0100 Subject: [PATCH 2/2] derive: custom derive is now stable --- derive/src/lib.rs | 1 - derive/tests/compile-fail/derive_on_struct.rs | 3 --- derive/tests/compile-fail/enum_with_associated_data.rs | 3 --- derive/tests/empty_enum.rs | 3 --- derive/tests/trivial.rs | 2 -- derive/tests/with_custom_values.rs | 2 -- 6 files changed, 14 deletions(-) diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 9e1804d..47fd490 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -9,7 +9,6 @@ // except according to those terms. #![crate_type = "proc-macro"] -#![feature(proc_macro, proc_macro_lib)] extern crate syn; #[macro_use] diff --git a/derive/tests/compile-fail/derive_on_struct.rs b/derive/tests/compile-fail/derive_on_struct.rs index b75c096..0145618 100644 --- a/derive/tests/compile-fail/derive_on_struct.rs +++ b/derive/tests/compile-fail/derive_on_struct.rs @@ -1,4 +1,3 @@ - // Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -9,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(proc_macro)] - extern crate num; #[macro_use] extern crate num_derive; diff --git a/derive/tests/compile-fail/enum_with_associated_data.rs b/derive/tests/compile-fail/enum_with_associated_data.rs index 59eb87c..ca6f34d 100644 --- a/derive/tests/compile-fail/enum_with_associated_data.rs +++ b/derive/tests/compile-fail/enum_with_associated_data.rs @@ -1,4 +1,3 @@ - // Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -9,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(proc_macro)] - extern crate num; #[macro_use] extern crate num_derive; diff --git a/derive/tests/empty_enum.rs b/derive/tests/empty_enum.rs index 5dd964d..1ffb1d3 100644 --- a/derive/tests/empty_enum.rs +++ b/derive/tests/empty_enum.rs @@ -1,4 +1,3 @@ - // Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -9,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(proc_macro)] - extern crate num; #[macro_use] extern crate num_derive; diff --git a/derive/tests/trivial.rs b/derive/tests/trivial.rs index c4efe47..0c100e7 100644 --- a/derive/tests/trivial.rs +++ b/derive/tests/trivial.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(proc_macro)] - extern crate num; #[macro_use] extern crate num_derive; diff --git a/derive/tests/with_custom_values.rs b/derive/tests/with_custom_values.rs index a2038c7..a83ea5b 100644 --- a/derive/tests/with_custom_values.rs +++ b/derive/tests/with_custom_values.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(proc_macro)] - extern crate num; #[macro_use] extern crate num_derive;