about summary refs log tree commit diff
path: root/src/libstd/std.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2012-11-26 22:22:22 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2012-11-26 22:22:22 -0800
commitcd6300e938f24f9ae830cd984b83112af0b2ccdc (patch)
treedaa5068bdf37018e3759f510d5b0499dad3d545f /src/libstd/std.rs
parenta18f0d413c1acea7c94e7e89740f47716f8efc51 (diff)
libstd: turn time::Tm and time::Timespec into structs
This avoids #4044 by not using the enum wrapper, and turning Tm_
directly into a struct. Along the way it modernizes the codebase
to eliminate no-implicit-copies warnings.
Diffstat (limited to 'src/libstd/std.rs')
-rw-r--r--src/libstd/std.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/std.rs b/src/libstd/std.rs
new file mode 100644
index 00000000000..6fb36aae7d4
--- /dev/null
+++ b/src/libstd/std.rs
@@ -0,0 +1,7 @@
+// A curious inner-module that's not exported that contains the binding
+// 'std' so that macro-expanded references to std::serialization and such
+// can be resolved within libcore.
+#[doc(hidden)] // FIXME #3538
+mod std {
+    pub use serialization;
+}