From ec2df608ca4c35f044c383b7a4c8ba268657aa15 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Apr 2017 18:34:21 -0500 Subject: make `as_ceiling` a general method of `P` --- build.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 0de38e0..e320c82 100644 --- a/build.rs +++ b/build.rs @@ -55,7 +55,6 @@ fn main() { // Priorities for i in 0..(1 << bits) + 1 { - let c = Ident::new(format!("C{}", i)); let p = Ident::new(format!("P{}", i)); let u = Ident::new(format!("U{}", i)); @@ -76,15 +75,6 @@ fn main() { quote! { #[doc = #doc] pub type #p = P<::typenum::#u>; - - impl #p { - /// Turns this priority into a ceiling - pub fn as_ceiling(&self) -> &#c { - unsafe { - ::core::mem::transmute(self) - } - } - } }, ); } -- cgit v1.2.3