Merge pull request #173 from mystor/macroinput
Remove the MacroInput type alias
diff --git a/src/lib.rs b/src/lib.rs
index 95e222a..9d1428e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -79,9 +79,6 @@
mod derive;
pub use derive::{Body, DeriveInput, BodyEnum, BodyStruct};
-// Deprecated. Use `DeriveInput` instead.
-#[doc(hidden)]
-pub type MacroInput = DeriveInput;
mod op;
pub use op::{BinOp, UnOp};
diff --git a/tests/test_macro_input.rs b/tests/test_derive_input.rs
similarity index 97%
rename from tests/test_macro_input.rs
rename to tests/test_derive_input.rs
index 5c2715c..6da5cfd 100644
--- a/tests/test_macro_input.rs
+++ b/tests/test_derive_input.rs
@@ -1,7 +1,3 @@
-//! Test the now-deprecated `parse_macro_input` function.
-//!
-//! Deprecation warnings are suppressed to keep the output clean.
-#![allow(deprecated)]
#![cfg(feature = "extra-traits")]
extern crate syn;
@@ -43,7 +39,7 @@
fn test_unit() {
let raw = "struct Unit;";
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "Unit".into(),
vis: Visibility::Inherited(VisInherited {}),
attrs: Vec::new(),
@@ -68,7 +64,7 @@
}
";
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "Item".into(),
vis: Visibility::Public(VisPublic {
pub_token: Default::default(),
@@ -173,7 +169,7 @@
}
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "Result".into(),
vis: Visibility::Public(VisPublic {
pub_token: Default::default(),
@@ -339,7 +335,7 @@
struct Dummy;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "Dummy".into(),
vis: Visibility::Inherited(VisInherited {}),
attrs: vec![Attribute {
@@ -393,7 +389,7 @@
struct S;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "S".into(),
vis: Visibility::Inherited(VisInherited {}),
attrs: vec![Attribute {
@@ -435,7 +431,7 @@
struct S;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "S".into(),
vis: Visibility::Inherited(VisInherited {}),
attrs: vec![Attribute {
@@ -474,7 +470,7 @@
pub(in m) struct Z(pub(in m::n) u8);
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "Z".into(),
vis: Visibility::Restricted(VisRestricted {
path: Box::new("m".into()),
@@ -522,7 +518,7 @@
pub(crate) struct S;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "S".into(),
vis: Visibility::Crate(VisCrate {
pub_token: Default::default(),
@@ -549,7 +545,7 @@
pub(super) struct S;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "S".into(),
vis: Visibility::Restricted(VisRestricted {
path: Box::new("super".into()),
@@ -577,7 +573,7 @@
pub(in super) struct S;
"#;
- let expected = MacroInput {
+ let expected = DeriveInput {
ident: "S".into(),
vis: Visibility::Restricted(VisRestricted {
path: Box::new("super".into()),