Gone with x86_64-custom

This commit is contained in:
Zhang Junyang
2024-02-27 20:28:43 +08:00
committed by Tate, Hongliang Tian
parent e3c227ae06
commit 7eac2772d0
18 changed files with 64 additions and 147 deletions

View File

@ -28,7 +28,7 @@ pub fn controlled(
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let attr = attr.to_string();
if attr.len() != 0 {
if !attr.is_empty() {
panic!("controlled cannot accept inner tokens.")
}
let mut tokens: proc_macro::TokenStream = quote!(
@ -45,7 +45,7 @@ pub fn uncontrolled(
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let attr = attr.to_string();
if attr.len() != 0 {
if !attr.is_empty() {
panic!("uncontrolled cannot accept inner tokens.")
}
let mut tokens: proc_macro::TokenStream = quote!(