<p dir="auto">Can't find an exact match for the issue, so create a new one here. Feel free to close it as a duplicate if it's the case.</p>
<p dir="auto">/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 9643, node: ExprStruct(Path { span: Span { lo: BytePos(4553805), hi: BytePos(4553816), 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(1772893), hi: BytePos(1772897), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 9644, node: ExprPath(None, Path { span: Span { lo: BytePos(4553829), hi: BytePos(4553844), 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(4553829), hi: BytePos(4553844), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553823), hi: BytePos(4553844), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1772920), hi: BytePos(1772926), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 9645, node: ExprPath(None, Path { span: Span { lo: BytePos(4553858), hi: BytePos(4553875), 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(4553858), hi: BytePos(4553875), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553850), hi: BytePos(4553875), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4553805), hi: BytePos(4553878), expn_id: ExpnId(4294967295) } })<br>
note: the compiler unexpectedly panicked. this is a bug.<br>
note: we would appreciate a bug report: <a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports">https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports</a><br>
note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br>
thread 'rustc' panicked at 'Box', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129</p>
<p dir="auto">stack backtrace:<br>
1:     0x7f0c71ceef6f - sys::backtrace::write::h2f046b875b210aadOBA<br>
2:     0x7f0c71d19c82 - panicking::on_panic::h792ac47fb8c07faehHJ<br>
3:     0x7f0c71c4ef2a - rt::unwind::begin_unwind_inner::hbffac672008352c8knJ<br>
4:     0x7f0c6f08b84d - rt::unwind::begin_unwind::h7782663023585067018<br>
5:     0x7f0c6f08b7f3 - diagnostic::SpanHandler::span_bug::h2cdd5e3b5b05e8f800D<br>
6:     0x7f0c6f964d03 - session::Session::span_bug::hae37e3dbc1cfddbalVp<br>
7:     0x7f0c7147c6bc - trans::debuginfo::scope_metadata::h3b34d6a00870eb16ClE<br>
8:     0x7f0c7138e568 - trans::debuginfo::set_source_location::h9f5b090c644fcb73vPD<br>
9:     0x7f0c71342f32 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
10:     0x7f0c713431f9 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
11:     0x7f0c713a57df - trans::expr::trans_uniq_expr::hd6a8aea14a08d77bQmj<br>
12:     0x7f0c713a644f - trans::expr::trans_unary::h35488c79f6cf1ec15ij<br>
13:     0x7f0c7139096e - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h<br>
14:     0x7f0c71343507 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
15:     0x7f0c713c3859 - trans::expr::trans_adt::h66e672e44790aeeca9i<br>
16:     0x7f0c713c630f - trans::expr::trans_struct::closure.42092<br>
17:     0x7f0c713b0176 - trans::expr::trans_struct::ha16472c37d95c70064i<br>
18:     0x7f0c7139269d - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
19:     0x7f0c713434e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
20:     0x7f0c71344317 - trans::controlflow::trans_block::h4b526e186a057814x7d<br>
21:     0x7f0c7141b3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt<br>
22:     0x7f0c7132c948 - trans::base::trans_fn::h5416ef5d9cea730bZxt<br>
23:     0x7f0c7132e3e0 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud<br>
24:     0x7f0c71373f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng<br>
25:     0x7f0c7137252e - trans::callee::trans_fn_ref::h7eebc758d7f24cf00bg<br>
26:     0x7f0c7136f97d - trans::callee::trans::h1b831ba8a404e3ach1f<br>
27:     0x7f0c713860eb - trans::callee::trans_call_inner::h15453122340747063984<br>
28:     0x7f0c71392b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
29:     0x7f0c713434e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
30:     0x7f0c713c3859 - trans::expr::trans_adt::h66e672e44790aeeca9i<br>
31:     0x7f0c713c630f - trans::expr::trans_struct::closure.42092<br>
32:     0x7f0c713b0176 - trans::expr::trans_struct::ha16472c37d95c70064i<br>
33:     0x7f0c7139269d - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
34:     0x7f0c713434e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
35:     0x7f0c71344317 - trans::controlflow::trans_block::h4b526e186a057814x7d<br>
36:     0x7f0c7141b3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt<br>
37:     0x7f0c7132c948 - trans::base::trans_fn::h5416ef5d9cea730bZxt<br>
38:     0x7f0c7132e3e0 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud<br>
39:     0x7f0c71373f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng<br>
40:     0x7f0c7137252e - trans::callee::trans_fn_ref::h7eebc758d7f24cf00bg<br>
41:     0x7f0c7136f97d - trans::callee::trans::h1b831ba8a404e3ach1f<br>
42:     0x7f0c713860eb - trans::callee::trans_call_inner::h15453122340747063984<br>
43:     0x7f0c71392b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
44:     0x7f0c713907c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h<br>
45:     0x7f0c71344c48 - trans::expr::trans::h4730571ef226d1543vh<br>
46:     0x7f0c71381b43 - trans::callee::trans_args::hfa9ae7de71a462d8I3g<br>
47:     0x7f0c71386fd0 - trans::callee::trans_call_inner::h15453122340747063984<br>
48:     0x7f0c71392b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
49:     0x7f0c713907c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h<br>
50:     0x7f0c71344c48 - trans::expr::trans::h4730571ef226d1543vh<br>
51:     0x7f0c71381b43 - trans::callee::trans_args::hfa9ae7de71a462d8I3g<br>
52:     0x7f0c71386fd0 - trans::callee::trans_call_inner::h15453122340747063984<br>
53:     0x7f0c71392b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
54:     0x7f0c713434e6 - trans::expr::trans_into::h3bbb0e210c9fb401Vph<br>
55:     0x7f0c71454df7 - trans::_match::mk_binding_alloca::h16286962064436778167<br>
56:     0x7f0c713428ed - trans::base::init_local::he5827bc6a6f1a71eyBs<br>
57:     0x7f0c71343ff2 - trans::controlflow::trans_block::h4b526e186a057814x7d<br>
58:     0x7f0c7141b3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt<br>
59:     0x7f0c7132c948 - trans::base::trans_fn::h5416ef5d9cea730bZxt<br>
60:     0x7f0c7132df76 - trans::monomorphize::monomorphic_fn::he3c4a3a0040e5501Qud<br>
61:     0x7f0c71373f9e - trans::callee::trans_fn_ref_with_substs::h85a6252d422343b2qng<br>
62:     0x7f0c7137252e - trans::callee::trans_fn_ref::h7eebc758d7f24cf00bg<br>
63:     0x7f0c7136f97d - trans::callee::trans::h1b831ba8a404e3ach1f<br>
64:     0x7f0c713860eb - trans::callee::trans_call_inner::h15453122340747063984<br>
65:     0x7f0c71392b40 - trans::expr::trans_rvalue_dps_unadjusted::h62a8f691df1cee3cqCi<br>
66:     0x7f0c713907c8 - trans::expr::trans_unadjusted::ha9dfc6191d78ce67V6h<br>
67:     0x7f0c71344c48 - trans::expr::trans::h4730571ef226d1543vh<br>
68:     0x7f0c713429c2 - trans::base::init_local::he5827bc6a6f1a71eyBs<br>
69:     0x7f0c71343ff2 - trans::controlflow::trans_block::h4b526e186a057814x7d<br>
70:     0x7f0c7141b3b1 - trans::base::trans_closure::h194b7ad0474e43a46mt<br>
71:     0x7f0c7132c948 - trans::base::trans_fn::h5416ef5d9cea730bZxt<br>
72:     0x7f0c713286e1 - trans::base::trans_item::h2af153dd6f7fd52bRVt<br>
73:     0x7f0c7142474c - trans::base::trans_crate::h5cb53f6b3e2377862Ru<br>
74:     0x7f0c72327613 - driver::phase_4_translate_to_llvm::h60575195b9fa298dENa<br>
75:     0x7f0c7230305b - driver::compile_input::h9772b425fd1776fdNba<br>
76:     0x7f0c723c7697 - run_compiler::h17c28dbe4dd58e3bV5b<br>
77:     0x7f0c723c52c9 - thunk::F.Invoke&lt;A, R&gt;::invoke::h3041729087284544127<br>
78:     0x7f0c723c3f40 - rt::unwind::try::try_fn::h11775082019993619070<br>
79:     0x7f0c71d89e38 - rust_try_inner<br>
80:     0x7f0c71d89e25 - rust_try<br>
81:     0x7f0c723c46df - thunk::F.Invoke&lt;A, R&gt;::invoke::h10556879288050829464<br>
82:     0x7f0c71d049b5 - sys:<g-emoji class="g-emoji" alias="thread" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f9f5.png">🧵</g-emoji>:thread_start::hfe8c2cac3ec4afcdr8E<br>
83:     0x7f0c6bb64181 - start_thread<br>
84:     0x7f0c718bf47c - __clone<br>
85:                0x0 - </p>
<p dir="auto">Could not compile <code class="notranslate">rusttest</code>.</p>
<p dir="auto">Caused by:<br>
Process didn't exit successfully: <code class="notranslate">rustc src/main.rs --crate-name rusttest --crate-type bin -g --out-dir /home/wlu/projects/rusttest/target --emit=dep-info,link -L dependency=/home/wlu/projects/rusttest/target -L dependency=/home/wlu/projects/rusttest/target/deps --extern time=/home/wlu/projects/rusttest/target/deps/libtime-f5c2f62bb1bdf976.rlib -L native=/home/wlu/projects/rusttest/target/build/time-f5c2f62bb1bdf976/out</code> (exit code: 101)</p>
<p dir="auto">rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/b0746ff19b3bc204215f04bbb5756159f9bc5c92/hovercard" href="https://github.com/rust-lang/rust/commit/b0746ff19b3bc204215f04bbb5756159f9bc5c92"><tt>b0746ff</tt></a> 2015-03-05) (built 2015-03-06)<br>
ubuntu 14.04 x86_64</p>
<p dir="auto">I was looking for a collection of environment variables that <code class="notranslate">rustc</code> honours but was unable to find a definitive list.  There are a few mentions of variables such as <code class="notranslate">RUSTFLAGS</code>, <code class="notranslate">RUST_THREADS</code> and <code class="notranslate">RUST_BACKTRACE</code> on google but none of them are documented in <a href="https://github.com/rust-lang/rust/blob/master/man/rustc.1">rustc(1)</a></p>
<p dir="auto">Would it be possible to add these to the manual for future reference under an <code class="notranslate">ENVIRONMENT</code> section much like <code class="notranslate">clang</code> and <code class="notranslate">gcc</code>?</p>