Issue 1:
When compiling the current version of wtftw (https://github.com/Kintaro/wtftw/tree/1e6e3315a8576db3629ff019f62ff34be20f181d) I get the following internal compiler error:

/home/rootnode/programs/src/rust/src/libstd/sync/rwlock.rs:104:40: 107:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 40089, node: ExprStruct(Path { span: Span { lo: BytePos(4687163), hi: BytePos(4687175), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticRwLock#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1799419), hi: BytePos(1799423), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 40090, node: ExprPath(None, Path { span: Span { lo: BytePos(4687188), hi: BytePos(4687204), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: RWLOCK_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4687188), hi: BytePos(4687204), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4687182), hi: BytePos(4687204), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1799447), hi: BytePos(1799453), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 40091, node: ExprPath(None, Path { span: Span { lo: BytePos(4687218), hi: BytePos(4687235), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4687218), hi: BytePos(4687235), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4687210), hi: BytePos(4687235), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4687163), hi: BytePos(4687238), expn_id: ExpnId(4294967295) } })
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rootnode/programs/src/rust/src/libsyntax/diagnostic.rs:129

and here's the backtrace:

stack backtrace:
1: 0x7f0aa15420a2 - sys::backtrace::write::h93e0c407e5be85e9OBA
2: 0x7f0aa1567fb2 - panicking::on_panic::h5d3ee2ae46f4245bhHJ
3: 0x7f0aa14ae6f9 - rt::unwind::begin_unwind_inner::hdd1b1743003be980knJ
4: 0x7f0a9eae8d9d - rt::unwind::begin_unwind::h1216767661413277895
5: 0x7f0a9eae8d43 - diagnostic::SpanHandler::span_bug::h1ce6cb39303d61eb00D
6: 0x7f0a9f3a0d13 - session::Session::span_bug::h7805e8a4f4e8c9d0MUp
7: 0x7f0aa0d16b2d - trans::debuginfo::scope_metadata::h00e19dfb6c4b02ebDlE
8: 0x7f0aa0c47f90 - trans::debuginfo::set_source_location::he257d690abcc014ewPD
9: 0x7f0aa0c0a2d3 - trans::expr::trans_into::h69c28702bd894f7fVph
10: 0x7f0aa0c0a67d - trans::expr::trans_into::h69c28702bd894f7fVph
11: 0x7f0aa0c5baaf - trans::expr::trans_uniq_expr::h1e7bbe7dc18f4250Qmj
12: 0x7f0aa0c5c4ac - trans::expr::trans_unary::h8d164a089e59c2725ij
13: 0x7f0aa0c49ee1 - trans::expr::trans_unadjusted::h2faf595f2e8601eaV6h
14: 0x7f0aa0c0a870 - trans::expr::trans_into::h69c28702bd894f7fVph
15: 0x7f0aa0c7bf47 - trans::expr::trans_adt::h2173f5860571ca7ea9i
16: 0x7f0aa0c7e31d - trans::expr::trans_struct::closure.42023
17: 0x7f0aa0c656d6 - trans::expr::trans_struct::h2169294176dbf44c64i
18: 0x7f0aa0c4b787 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
19: 0x7f0aa0c0a84f - trans::expr::trans_into::h69c28702bd894f7fVph
20: 0x7f0aa0c0b3c7 - trans::controlflow::trans_block::hbc9259590e405231x7d
21: 0x7f0aa0cc7770 - trans::base::trans_closure::h095d981b15ea3f776mt
22: 0x7f0aa0bfaaab - trans::base::trans_fn::ha9cca8b03cf052edZxt
23: 0x7f0aa0bfbbfd - trans::monomorphize::monomorphic_fn::h5d300ef1047f1ceeQud
24: 0x7f0aa0c3223f - trans::callee::trans_fn_ref_with_substs::h75ab89a75157f2acqng
25: 0x7f0aa0c30da9 - trans::callee::trans_fn_ref::h7c5fa4ceb6f4bcba0bg
26: 0x7f0aa0c2edb2 - trans::callee::trans::h43f5e14039e3fae2h1f
27: 0x7f0aa0c41e22 - trans::callee::trans_call_inner::h9374352419014354991
28: 0x7f0aa0c4bbf7 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
29: 0x7f0aa0c49d3b - trans::expr::trans_unadjusted::h2faf595f2e8601eaV6h
30: 0x7f0aa0c0bb20 - trans::expr::trans::h48d78d7fbe71c04d3vh
31: 0x7f0aa0c3d35b - trans::callee::trans_args::hec90a9a2bce964abI3g
32: 0x7f0aa0c42d2c - trans::callee::trans_call_inner::h9374352419014354991
33: 0x7f0aa0c4bbf7 - trans::expr::trans_rvalue_dps_unadjusted::hf14ed712f5450052qCi
34: 0x7f0aa0c0a84f - trans::expr::trans_into::h69c28702bd894f7fVph
35: 0x7f0aa0cf754e - trans::_match::mk_binding_alloca::h10767932601642127626
36: 0x7f0aa0c09c0d - trans::base::init_local::he9cc792daa88d20dyBs
37: 0x7f0aa0c0b0a2 - trans::controlflow::trans_block::hbc9259590e405231x7d
38: 0x7f0aa0cc7770 - trans::base::trans_closure::h095d981b15ea3f776mt
39: 0x7f0aa0bfaaab - trans::base::trans_fn::ha9cca8b03cf052edZxt
40: 0x7f0aa0bf6996 - trans::base::trans_item::he8649670fcd69308RVt
41: 0x7f0aa0bf6b1c - trans::base::trans_item::he8649670fcd69308RVt
42: 0x7f0aa0ccdfdc - trans::base::trans_crate::h533185929d36025f2Ru
43: 0x7f0aa1b6c9d2 - driver::phase_4_translate_to_llvm::h1cd3df14fce3d4a6ENa
44: 0x7f0aa1b4839a - driver::compile_input::h6259eba5094d4b1bNba
45: 0x7f0aa1c0c5ed - run_compiler::hce3b84eedbd241b1V5b
46: 0x7f0aa1c0a35c - thunk::F.Invoke<A, R>::invoke::h8006868353939210570
47: 0x7f0aa1c08fb0 - rt::unwind::try::try_fn::h13111521890980263456
48: 0x7f0aa15dc938 - rust_try_inner
49: 0x7f0aa15dc925 - rust_try
50: 0x7f0aa1c0973b - thunk::F.Invoke<A, R>::invoke::h267800211576463002
51: 0x7f0aa15557b5 - sys::thread::thread_start::h5ed88ddeeb2bf9c3r8E
52: 0x7f0a9b66d373 - start_thread
53: 0x7f0aa113627c - __clone
54: 0x0 - <unknown>

Compiled with rustc 1.0.0-dev (68740b4 2015-03-05) (built 2015-03-05)

Issue 2:
$ RUST_BACKTRACE=1 cargo build --verbose
Fresh gcc v0.2.1
Fresh pkg-config v0.2.1
Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys)
Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim`
src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } })
src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129

stack backtrace:
1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB
2: 0x7fa979984760 - <unknown>
3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK
4: 0x7fa976e432b0 - <unknown>
5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E
6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs
7: 0x7fa9787a8a10 - <unknown>
8: 0x7fa9786d9700 - <unknown>
9: 0x7fa978698f50 - <unknown>
10: 0x7fa978698f50 - <unknown>
11: 0x7fa9786999b0 - <unknown>
12: 0x7fa978756fc0 - <unknown>
13: 0x7fa97870d900 - <unknown>
14: 0x7fa97873aef0 - <unknown>
15: 0x7fa9786d9d30 - <unknown>
16: 0x7fa97869a200 - <unknown>
17: 0x7fa9786cea00 - <unknown>
18: 0x7fa9786d50f0 - <unknown>
19: 0x7fa9786dbb30 - <unknown>
20: 0x7fa9786db080 - <unknown>
21: 0x7fa97869a200 - <unknown>
22: 0x7fa9786cea00 - <unknown>
23: 0x7fa9786d50f0 - <unknown>
24: 0x7fa9786dbb30 - <unknown>
25: 0x7fa9786db080 - <unknown>
26: 0x7fa97869a200 - <unknown>
27: 0x7fa9786cea00 - <unknown>
28: 0x7fa9786d3a90 - <unknown>
29: 0x7fa9786dbb30 - <unknown>
30: 0x7fa978698f50 - <unknown>
31: 0x7fa978787d40 - <unknown>
32: 0x7fa978698830 - <unknown>
33: 0x7fa9786999b0 - <unknown>
34: 0x7fa9786dbb30 - <unknown>
35: 0x7fa978698f50 - <unknown>
36: 0x7fa9786999b0 - <unknown>
37: 0x7fa978756fc0 - <unknown>
38: 0x7fa97870d900 - <unknown>
39: 0x7fa9786dbb30 - <unknown>
40: 0x7fa9786db080 - <unknown>
41: 0x7fa97869a200 - <unknown>
42: 0x7fa9786cea00 - <unknown>
43: 0x7fa9786d50f0 - <unknown>
44: 0x7fa9786dbb30 - <unknown>
45: 0x7fa978698f50 - <unknown>
46: 0x7fa9786999b0 - <unknown>
47: 0x7fa9786dbb30 - <unknown>
48: 0x7fa978698f50 - <unknown>
49: 0x7fa9786999b0 - <unknown>
50: 0x7fa978756fc0 - <unknown>
51: 0x7fa9786887a0 - <unknown>
52: 0x7fa978684210 - <unknown>
53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv
54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa
55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba
56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc
57: 0x7fa97a005d00 - <unknown>
58: 0x7fa97a004be0 - <unknown>
59: 0x7fa9799e1770 - <unknown>
60: 0x7fa9799e1760 - rust_try
61: 0x7fa97a004e90 - <unknown>
62: 0x7fa979971e00 - <unknown>
63: 0x7fa974614f70 - <unknown>
64: 0x7fa97955d389 - clone
65: 0x0 - <unknown>

Could not compile `openssl-sys`.

Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101)

Rust version:

rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17)
binary: rustc
commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f
commit-date: 2015-02-16
build-date: 2015-02-17
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev

OS: Gentoo Linux AMD64