]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #13160 : FlaPer87/rust/rename-pod, r=thestinger
authorbors <bors@rust-lang.org>
Fri, 28 Mar 2014 13:26:47 +0000 (06:26 -0700)
committerbors <bors@rust-lang.org>
Fri, 28 Mar 2014 13:26:47 +0000 (06:26 -0700)
So far, we've used the term POD "Plain Old Data" to refer to types that
can be safely copied. However, this term is not consistent with the
other built-in bounds that use verbs instead. This patch renames the `Pod`
kind into `Copy`.

RFC: 0003-opt-in-builtin-traits

r? @nikomatsakis

src/librustdoc/html/layout.rs
src/libstd/intrinsics.rs

index 095f27d25b350baf460501d9d8fea9d4f06e9e4b..b59e29fc0e9a718549e854f6e6b25c756e832609 100644 (file)
@@ -39,7 +39,7 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
           rel='stylesheet' type='text/css'>
     <link rel="stylesheet" type="text/css" href="{root_path}main.css">
 
-    {favicon, select, none{} other{<link rel="shortcut icon" href="\#" />}}
+    {favicon, select, none{} other{<link rel="shortcut icon" href="#" />}}
 </head>
 <body>
     <!--[if lte IE 8]>
@@ -51,7 +51,7 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
 
     <section class="sidebar">
         {logo, select, none{} other{
-            <a href='{root_path}{krate}/index.html'><img src='\#' alt=''/></a>
+            <a href='{root_path}{krate}/index.html'><img src='#' alt=''/></a>
         }}
 
         {sidebar}
index 97e275ae983b1bd95e892e467f4865caa9f60865..1da9a3a710339296415108da12420b27587c676d 100644 (file)
@@ -451,7 +451,7 @@ fn visit_leave_fn(&mut self, purity: uint, proto: uint,
 /// `TypeId` represents a globally unique identifier for a type
 #[lang="type_id"] // This needs to be kept in lockstep with the code in trans/intrinsic.rs and
                   // middle/lang_items.rs
-#[deriving(Eq, Hash, Show)]
+#[deriving(Eq, Hash, Show, TotalEq)]
 #[cfg(not(test))]
 pub struct TypeId {
     priv t: u64,