remove use of hidden api in support procedural (#2383)

This commit is contained in:
thiolliere
2019-04-25 15:48:19 +02:00
committed by Bastian Köcher
parent 93bc03cfe6
commit 07d495d905
6 changed files with 81 additions and 137 deletions
@@ -27,30 +27,6 @@ use quote::quote;
pub mod syn_ext;
#[macro_export]
macro_rules! custom_keyword_impl {
($name:ident, $keyident:expr, $keydisp:expr) => {
impl CustomKeyword for $name {
fn ident() -> &'static str { $keyident }
fn display() -> &'static str { $keydisp }
}
}
}
#[macro_export]
macro_rules! custom_keyword {
($name:ident, $keyident:expr, $keydisp:expr) => {
#[derive(Debug)]
struct $name;
custom_keyword_impl!($name, $keyident, $keydisp);
}
}
// FIXME #1569, remove the following functions, which are copied from sr-api-macros
use proc_macro2::{TokenStream, Span};
use syn::Ident;