]> git.lizzy.rs Git - rust.git/commitdiff
Get rid of all the remaining uses of `refN`/`valN`/`mutN`/`TupleN`
authorJorge Aparicio <japaricious@gmail.com>
Sat, 13 Dec 2014 15:04:55 +0000 (10:04 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sun, 14 Dec 2014 01:04:41 +0000 (20:04 -0500)
src/etc/unicode.py
src/libstd/sys/windows/process.rs
src/test/bench/shootout-fasta.rs

index c41c26a1ccbf9f0669721d0aa1e0c7d1ab61899b..257cd80258246ef536c1195f155ea2184eed3f6a 100755 (executable)
@@ -348,7 +348,6 @@ def emit_conversions_module(f, lowerupper, upperlower):
     f.write("""
     use core::cmp::Ordering::{Equal, Less, Greater};
     use core::slice::SlicePrelude;
-    use core::tuple::Tuple2;
     use core::option::Option;
     use core::option::Option::{Some, None};
     use core::slice;
@@ -356,14 +355,14 @@ def emit_conversions_module(f, lowerupper, upperlower):
     pub fn to_lower(c: char) -> char {
         match bsearch_case_table(c, LuLl_table) {
           None        => c,
-          Some(index) => LuLl_table[index].val1()
+          Some(index) => LuLl_table[index].1
         }
     }
 
     pub fn to_upper(c: char) -> char {
         match bsearch_case_table(c, LlLu_table) {
             None        => c,
-            Some(index) => LlLu_table[index].val1()
+            Some(index) => LlLu_table[index].1
         }
     }
 
index 356d6f02565ede63f635d54b0f9f2e42c39ba831..bbfd32ee76bfab72b273127eacc9b88b7af24f72 100644 (file)
@@ -430,8 +430,8 @@ fn with_envp<K, V, T, F>(env: Option<&collections::HashMap<K, V>>, cb: F) -> T w
 
             for pair in env.iter() {
                 let kv = format!("{}={}",
-                                 pair.ref0().container_as_str().unwrap(),
-                                 pair.ref1().container_as_str().unwrap());
+                                 pair.0.container_as_str().unwrap(),
+                                 pair.1.container_as_str().unwrap());
                 blk.extend(kv.utf16_units());
                 blk.push(0);
             }
index f9fafa977acab0e7d41a40c30d169fcf45e90ed1..1f0bed055211dc35778a3f8f1a2bc0f58db606ca 100644 (file)
@@ -78,7 +78,7 @@ impl<'a> Iterator<u8> for AAGen<'a> {
     fn next(&mut self) -> Option<u8> {
         let r = self.rng.gen();
         self.data.iter()
-            .skip_while(|pc| pc.val0() < r)
+            .skip_while(|pc| pc.0 < r)
             .map(|&(_, c)| c)
             .next()
     }