mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Gone with x86_64-custom
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e3c227ae06
commit
7eac2772d0
@ -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!(
|
||||
|
Reference in New Issue
Block a user