about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-26 08:12:18 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-12-14 04:21:56 -0500
commit5c3d3989192f88b16f39d554c3844700c91b6c8e (patch)
tree59c77544a06d3f4c2d363b5afe37c91a444e78d6 /src/test/debuginfo
parent394f6846b80240480f8d7ce4b3d5d4c42ba85201 (diff)
downloadrust-5c3d3989192f88b16f39d554c3844700c91b6c8e.tar.gz
rust-5c3d3989192f88b16f39d554c3844700c91b6c8e.zip
Mostly rote conversion of `proc()` to `move||` (and occasionally `Thunk::new`)
Diffstat (limited to 'src/test/debuginfo')
-rw-r--r--src/test/debuginfo/lexical-scope-in-unique-closure.rs2
-rw-r--r--src/test/debuginfo/type-names.rs5
2 files changed, 1 insertions, 6 deletions
diff --git a/src/test/debuginfo/lexical-scope-in-unique-closure.rs b/src/test/debuginfo/lexical-scope-in-unique-closure.rs
index 6ed6a273125..fa7822495d5 100644
--- a/src/test/debuginfo/lexical-scope-in-unique-closure.rs
+++ b/src/test/debuginfo/lexical-scope-in-unique-closure.rs
@@ -77,7 +77,7 @@ fn main() {
     zzz(); // #break
     sentinel();
 
-    let unique_closure: proc(int) = proc(x) {
+    let unique_closure = |: x:int| {
         zzz(); // #break
         sentinel();
 
diff --git a/src/test/debuginfo/type-names.rs b/src/test/debuginfo/type-names.rs
index e7664d1029b..d72b080409e 100644
--- a/src/test/debuginfo/type-names.rs
+++ b/src/test/debuginfo/type-names.rs
@@ -167,9 +167,6 @@
 
 
 // CLOSURES
-// gdb-command:whatis some_proc
-// gdb-check:type = struct (once proc(int, u8) -> (int, u8), uint)
-
 // gdb-command:whatis stack_closure1
 // gdb-check:type = struct (&mut|int|, uint)
 
@@ -322,8 +319,6 @@ fn main() {
     // how that maps to rustc's internal representation of these forms.
     // Once closures have reached their 1.0 form, the tests below should
     // probably be expanded.
-    let some_proc = (proc(a:int, b:u8) (a, b), 0u);
-
     let stack_closure1 = (|x:int| {}, 0u);
     let stack_closure2 = (|x:i8, y: f32| { (x as f32) + y }, 0u);