Skip to content

Instantly share code, notes, and snippets.

compile_and_link: x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libcore.dylib
time: 0.681 s parsing
time: 0.039 s configuration
time: 0.035 s maybe building test harness
time: 0.034 s expansion
time: 0.000 s core injection
time: 0.021 s ast indexing
time: 0.002 s external crate/lib resolution
rustc(54480,0x10c0fd000) malloc: *** error for object 0x7fb44b819d18: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
@catamorphism
catamorphism / not-enough-arguments.rs
Created March 28, 2012 23:35
Strange type error message
fn foo(a: int, b: int, c: int, d:int) {
fail;
}
fn main() {
foo(1, 2, 3);
}
@catamorphism
catamorphism / id_rsa.pub
Created April 2, 2012 21:37
public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFQ1Deah4DDql8tR0E96oLOAHitvkNYiVChhMFVZw81/XE+ujNBFvsS6hjzZzxSPfw68dxSPNroAytL4TXbTjMbGhs4XkSUfGr8gLBoMB+EBx4ZIGXIJsSSDx0tyvjxPRGBAGMEg5v2zGYuMwgQ8zaf4J1cZ4t7UHt8jMkg/CpuMCxTqeCO+K/xx3zXdFXH7sas4QvtRyi5dpwvckFkAIBHb5ISTyjgSskql/r6SF7i8z3fiXeOKclDGcywjRRhXLNoL/0Y3XowJZyeJUBorZPlQG5DGv5SPRYEmCi+P0Lpe4tCMbeNxuW3U/ir9lVfbyhJJ3rXVXcaY/GdmHOSMH/ chevalier@alum.wellesley.edu
@catamorphism
catamorphism / option::none
Created April 7, 2012 00:25
a less-than-helpful error span
(gdb) bt
#0 upcall_fail (expr=0x103a1e910 "option none", file=0x10124f3c0 "src/rustc/rustc.rc", line=1) at rust_upcall.cpp:129
#1 0x0000000100c86e5a in option::get2685::_257e517213434599 ()
#2 0x0000000100c86d1a in map::chained::hashmap::get2684::_91be2091be825ddf ()
#3 0x0000000100c82b91 in middle::trans::type_use::type_uses_for::_7f98967a2233a3a9 ()
#4 0x0000000100c572a0 in middle::trans::base::monomorphic_fn::_c2859e914b9cd880 ()
#5 0x0000000100ca3c2f in middle::trans::base::lval_static_fn_inner::_73bc9bc67815ad92 ()
#6 0x0000000100ca3135 in middle::trans::base::lval_static_fn::_edc25cdd3a653ce5 ()
#7 0x0000000100cb0cb2 in middle::trans::base::trans_var::_384be2fad5816f12 ()
#8 0x0000000100cb09aa in middle::trans::base::trans_path::_e04090beddd9c39c ()
@catamorphism
catamorphism / build-error
Created April 11, 2012 22:38
build error
cfg: shell host triple x86_64-apple-darwin
cfg: host for x86_64-apple-darwin is x86_64
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
cfg: including dist rules
cfg: including test rules
check: formatting
@catamorphism
catamorphism / configlog
Created April 11, 2012 22:49
config log
configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found grep
configure: found xargs
configure: found cp
configure: found find
configure: found uname
@catamorphism
catamorphism / build-log
Created April 11, 2012 22:53
VERBOSE build log
cfg: shell host triple x86_64-apple-darwin
cfg: host for x86_64-apple-darwin is x86_64
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
cfg: including dist rules
cfg: including test rules
find x86_64-apple-darwin/test \
@catamorphism
catamorphism / issue-2185
Created April 22, 2012 19:05
issue 2185
import iter::*;
fn main() {
let range = bind uint::range(0u, 1000u, _);
let filt = bind iter::filter(range,
{|&&n: uint| n % 3u != 0u && n % 5u != 0u }, _);
let sum = iter::foldl(filt, 0u) {|accum, &&n: uint| 5u };
}
x86_64-apple-darwin/stage0/bin/rustc --cfg=ndebug --time-passes --target=x86_64-apple-darwin -o x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib /Users/TimChevalier/rust/src/rustc/rustc.rc && touch x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/librustc.dylib
/Users/TimChevalier/rust/src/rustc/middle/typeck/check.rs:342:27: 342:36 error: failed to find an implementation of interface middle::typeck::astconv::region_scope for middle::typeck::astconv::type_rscope
/Users/TimChevalier/rust/src/rustc/middle/typeck/check.rs:342 rslt.insert(id, ccx.to_ty(rs, t));
wget http://lafalafu.com/krc/Scratch/rust-stage0-2012-06-07-3cbd1e2-macos-x86_64-df2966b4ddca5d3660cfe7b81fae800cfdcf543b.tar.bz2