about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-13 10:04:55 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-13 20:04:41 -0500
commit029789b98cf0115f347fe12fd19bd2c29751f8ce (patch)
tree341227f9ab7e496fd5acc545210e43dde0dcd07f /src
parent17a9c2764f4713bb1a040afd535af5a30d02a828 (diff)
downloadrust-029789b98cf0115f347fe12fd19bd2c29751f8ce.tar.gz
rust-029789b98cf0115f347fe12fd19bd2c29751f8ce.zip
Get rid of all the remaining uses of `refN`/`valN`/`mutN`/`TupleN`
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/unicode.py5
-rw-r--r--src/libstd/sys/windows/process.rs4
-rw-r--r--src/test/bench/shootout-fasta.rs2
3 files changed, 5 insertions, 6 deletions
diff --git a/src/etc/unicode.py b/src/etc/unicode.py
index c41c26a1ccb..257cd802582 100755
--- a/src/etc/unicode.py
+++ b/src/etc/unicode.py
@@ -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
         }
     }
 
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs
index 356d6f02565..bbfd32ee76b 100644
--- a/src/libstd/sys/windows/process.rs
+++ b/src/libstd/sys/windows/process.rs
@@ -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);
             }
diff --git a/src/test/bench/shootout-fasta.rs b/src/test/bench/shootout-fasta.rs
index f9fafa977ac..1f0bed05521 100644
--- a/src/test/bench/shootout-fasta.rs
+++ b/src/test/bench/shootout-fasta.rs
@@ -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()
     }