This commit is contained in:
Jorge Aparicio 2017-04-12 15:28:18 -05:00
parent f62af15cfd
commit 26f8ca6969

View file

@ -91,13 +91,15 @@ fn main() {
}
let u = Ident::new(format!("U{}", (1 << bits)));
tokens.push(quote! {
tokens.push(
quote! {
#[doc(hidden)]
pub type CMAX = C<::typenum::#u>;
/// Maximum priority level
pub type UMAX = ::typenum::#u;
});
},
);
let tokens = quote! {
#(#tokens)*