about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/unstable/raw.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/unstable/raw.rs b/src/libstd/unstable/raw.rs
index a538566fa18..ac0e83df7ef 100644
--- a/src/libstd/unstable/raw.rs
+++ b/src/libstd/unstable/raw.rs
@@ -49,6 +49,7 @@ pub trait Repr<T> {
     /// 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) } }
 }