This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/alex/code/rust2/src/libcore/task/spawn.rs:105:26: 105:45 error: multiple applicable methods in scope | |
/Users/alex/code/rust2/src/libcore/task/spawn.rs:105 let didnt_overwrite = tasks.insert(task); | |
^~~~~~~~~~~~~~~~~~~ | |
/Users/alex/code/rust2/src/libcore/container.rs:74:4: 76:5 note: candidate #1 is `container::__extensions__::insert` | |
/Users/alex/code/rust2/src/libcore/container.rs:74 fn insert(&mut self, key: K, value: V) -> bool { | |
/Users/alex/code/rust2/src/libcore/container.rs:75 self.swap(key, value).is_none() | |
/Users/alex/code/rust2/src/libcore/container.rs:76 } | |
/Users/alex/code/rust2/src/libcore/hashmap.rs:562:4: 562:73 note: candidate #2 is `hashmap::__extensions__::insert` | |
/Users/alex/code/rust2/src/libcore/hashmap.rs:562 fn insert(&mut self, value: T) -> bool { self.map.insert(value, ()) } | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct A<'self> { | |
a: &'self mut B | |
} | |
struct B { | |
a: int | |
} | |
impl<'self> A<'self> { | |
fn foo(&self) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl __c0_main | |
__c0_main: | |
L__c0_main_bb_0: | |
push %r12 | |
push %rbx | |
push %r14 | |
push %rbp | |
push %r15 | |
push %r13 | |
sub $936, %rsp // %rsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl __c0_main | |
__c0_main: | |
L__c0_main_bb_0: | |
sub $8, %rsp // %rsp | |
mov $1, %edx | |
mov $2, %r9d | |
mov $0, %r10d | |
L__c0_main_bb_1: | |
cmp $3, %r10d // l | |
jge L__c0_main_bb_3 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B) | |
-------------------------------------------------------------------------------- | |
0 0 0 0 0 0 | |
1 2,331,958,577 59,810,432 56,270,545 3,539,887 0 | |
94.08% (56,270,545B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. | |
->52.23% (31,241,389B) 0x2E3597F: memory_region::malloc(unsigned long, char const*) (memory_region.cpp:132) | |
| ->52.08% (31,147,937B) 0x2E35B95: boxed_region::malloc(type_desc*, unsigned long) (boxed_region.cpp:22) | |
| | ->52.08% (31,147,937B) 0x2E29E66: upcall_s_malloc (rust_upcall.cpp:171) | |
| | ->52.08% (31,147,937B) 0x2E2A129: rust_upcall_malloc_noswitch (rust_upcall.cpp:204) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc: (none) | |
cmd: ./x86_64-apple-darwin/stage1/bin/rustc --cfg stage1 ./src/librustc/rustc.rc | |
time_unit: i | |
#----------- | |
snapshot=0 | |
#----------- | |
time=0 | |
mem_heap_B=0 | |
mem_heap_extra_B=0 | |
mem_stacks_B=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct A; | |
trait B<T> { fn foo(a: &T); } | |
impl B<int> for A { | |
fn foo(_: &int) {} | |
} | |
struct Something; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
use std::iterator::*; | |
let a: Counter<uint> = Counter::new(0u, 1); | |
let asdf: Option<uint> = a.next(); | |
let b: Counter<uint> = Counter::new(5u, 2); | |
let c: TakeIterator<Counter<uint>> = a.take(3); | |
let b: TakeIterator<Counter<uint>> = b.take(4); | |
let mut c: ChainIterator<TakeIterator<Counter<uint>>, | |
TakeIterator<Counter<uint>>> = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/IR/PassRegistry.cpp b/lib/IR/PassRegistry.cpp | |
index a0b64ed..b22926c 100644 | |
--- a/lib/IR/PassRegistry.cpp | |
+++ b/lib/IR/PassRegistry.cpp | |
@@ -21,6 +21,7 @@ | |
#include "llvm/Support/Compiler.h" | |
#include "llvm/Support/ManagedStatic.h" | |
#include "llvm/Support/Mutex.h" | |
+#include "llvm/Support/RWMutex.h" | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub type Chunk<'self> = (extern "Rust" fn(&util::Void, &mut super::Formatter), | |
&'self util::Void); | |
pub fn chunk<'a, T>(f: extern "Rust" fn(&T, &mut super::Formatter), | |
t: &'a T) -> Chunk<'a> { | |
unsafe { | |
return cast::transmute((f, t)); | |
} | |
} | |