diff --git a/src/libstd/unstable/raw.rs b/src/libstd/unstable/raw.rs index a538566fa1898..ac0e83df7ef56 100644 --- a/src/libstd/unstable/raw.rs +++ b/src/libstd/unstable/raw.rs @@ -49,6 +49,7 @@ pub trait Repr { /// struct representation. This can be used to read/write different values /// for the struct. This is a safe method because by default it does not /// give write-access to the struct returned. + #[inline] fn repr(&self) -> T { unsafe { cast::transmute_copy(self) } } }