Skip to content

Instantly share code, notes, and snippets.

class kitten {
let cat: option<cat>;
let meows: uint;
new(meows: uint, cat: option<cat>) {
self.meows = meows; self.cat = cat;
}
}
type cat = @kitten;
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:mozilla/rust.git
[branch "master"]
compile: rt/x86_64-apple-darwin/rust_builtin.o
/Users/tchevalier/rust/src/rt/sync/lock_and_signal.h: In function 'void rust_wait_cond_lock(rust_cond_lock*)':
/Users/tchevalier/rust/src/rt/sync/lock_and_signal.h:27: error: 'bool lock_and_signal::lock_held_by_current_thread()' is private
/Users/tchevalier/rust/src/rt/rust_builtin.cpp:893: error: within this context
/Users/tchevalier/rust/src/rt/sync/lock_and_signal.h: In function 'bool rust_signal_cond_lock(rust_cond_lock*)':
/Users/tchevalier/rust/src/rt/sync/lock_and_signal.h:27: error: 'bool lock_and_signal::lock_held_by_current_thread()' is private
/Users/tchevalier/rust/src/rt/rust_builtin.cpp:907: error: within this context
x86_64-apple-darwin/stage2/lib/libcore-d27e4777a53c3e50-0.3.dylib
x86_64-apple-darwin/stage2/lib/libcore-d27e4777a53c3e50-0.3.dylib.dSYM:
Contents
/// Map representation
use std;
import io::reader_util;
enum square {
bot,
wall,
rock,
Return-Path: 1065D1B1@teha.nl
Received: from zmmta2.mail.corp.phx1.mozilla.com (LHLO
zmmta2.mail.corp.phx1.mozilla.com) (10.20.77.30) by
zmmbox4.mail.corp.phx1.mozilla.com with LMTP; Thu, 2 Aug 2012 05:40:09
-0700 (PDT)
Received: from psmtp.com (exprod5mx250.postini.com [64.18.0.170])
by zmmta2.mail.corp.phx1.mozilla.com (Postfix) with ESMTPS id 2F75B10207F
for <all@mozilla.com>; Thu, 2 Aug 2012 05:40:01 -0700 (PDT)
Received: from source ([94.235.159.160]) by exprod5mx250.postini.com ([64.18.4.11]) with SMTP;
Thu, 02 Aug 2012 07:40:01 CDT
illegal borrow: borrowed pointer has lifetime &, but the borrowed value only has lifetime &
n-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_system_7.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_syste\
m_8.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/statements_and_expressions_4.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_sy\
stem_11.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_system_1.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/statements_and_exp\
ressions_9.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_system_9.rs ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/type_system_5.r\
s ... ok\ntest [run-pass] x86_64-unknown-linux-gnu/test/doc-ref/statements_and_expressions_7.rs ... ok\n\nresult: ok. 72 passed; 0 failed; 10 ignored\n\nsummary of 34 tes\
t runs: 6806 passed; 0 failed; 446 ignored\n\n$ sh -c s3cmd put -P *.tar.bz2 s3://dl.rust-lang.org/stage0-snapshots/\nFile 'rust-stage0-2012-08-14-58546df-linux-i386-8cfa\
1a11aaa7e4be09d8acb246225f5
pure fn bucket_for_key_with_hash(
buckets: &[option<Bucket<K,V>>],
hash: uint,
k: &K) -> SearchResult<K, V> {
let _ = for self.bucket_sequence(hash) |i| {
match buckets[i] {
some(bkt) => if bkt.hash == hash && self.eqfn(k, &bkt.key) {
return Found(some(&bkt))
},
import iter;
import iter::base_iter;
impl Q<A> for base_iter<A> {
fn flat_map_to_vec<B:copy, IB:base_iter<B>>(op: fn(B) -> IB) -> [B] {
iter::flat_map_to_vec(self, op)
}
}