Skip to content

Cannot relate bound region: ReStatic <= ReEarlyBound(360, TypeSpace, 0, 'a) #25859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RoxasShadow opened this issue May 28, 2015 · 1 comment
Closed

Comments

@RoxasShadow
Copy link

I was doing some refactoring on rust-cleverbot and then I encountered the error below. The following one is the diff of the changes I applied in order to get it: https://github.com/RoxasShadow/rust-cleverbot/compare/onoez?expand=1

Meta

rustc --version --verbose:

rustc 1.0.0 (a59de37 2015-05-13) (built 2015-05-14)
binary: rustc
commit-hash: a59de37
commit-date: 2015-05-13
build-date: 2015-05-14
host: x86_64-apple-darwin
release: 1.0.0

Backtrace:

┌[giovanni@Mozes-Air] [/dev/ttys001] [onoez]
└[~/Desktop/rust-cleverbot]> cargo run --example think Ciao! --verbose
Fresh libc v0.1.8
Fresh unicase v0.1.0
Fresh httparse v0.1.2
Fresh bitflags v0.1.1
Fresh lazy_static v0.1.10
Fresh matches v0.1.2
Fresh typeable v0.1.1
Fresh rustc-serialize v0.3.14
Fresh traitobject v0.0.1
Fresh gcc v0.3.5
Fresh pkg-config v0.3.4
Fresh rand v0.3.8
Fresh log v0.3.1
Fresh num_cpus v0.2.6
Fresh url v0.2.34
Fresh mime v0.0.11
Fresh time v0.1.25
Fresh openssl-sys v0.6.2
Fresh rust-crypto v0.2.31
Fresh openssl v0.6.2
Compiling rust-cleverbot v0.0.1 (file:///Users/giovanni/Desktop/rust-cleverbot)
Running rustc src/lib.rs --crate-name cleverbot --crate-type lib -g --out-dir /Users/giovanni/Desktop/rust-cleverbot/target/debug --emit=dep-info,link -L dependency=/Users/giovanni/Desktop/rust-cleverbot/target/debug -L dependency=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps --extern url=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/liburl-beb2c5952735425a.rlib --extern crypto=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/libcrypto-67f1ad94f3ffe5f4.rlib --extern hyper=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/libhyper-f7b4259bc2dab307.rlib -L native=/usr/lib -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/openssl-sys-5040130ff99796a0/out -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/rust-crypto-67f1ad94f3ffe5f4/out -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/time-e758cbe877e9589d/out
Fresh cookie v0.1.20
Fresh hyper v0.5.1
src/lib.rs:1:1: 1:1 error: internal compiler error: cannot relate bound region: ReStatic <= ReEarlyBound(360, TypeSpace, 0, 'a)
src/lib.rs:1 extern crate url;
^
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', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:149
stack backtrace:
1: 0x103a45e7f - sys::backtrace::write::h7807ec07859fb503t1r
2: 0x103a4e4b2 - panicking::on_panic::ha0ed2b9b562a7f9ctZv
3: 0x103a0ae35 - rt::unwind::begin_unwind_inner::hbfb8d99cb52be7a1cHv
4: 0x1031e743e - rt::unwind::begin_unwind::h14482673826369992638
5: 0x1031e73ca - diagnostic::SpanHandler::span_bug::ha80d5103c6dc346fEqB
6: 0x1010acc2b - middle::infer::region_inference::RegionVarBindings<'a, 'tcx>::make_subregion::h424c309cfde0bc8dtiv
7: 0x101063c9b - middle::infer::sub::Sub<'a, 'tcx>.TypeRelation<'a, 'tcx>::regions::h7b6335e10c5e2accAux
8: 0x101063a81 - middle::infer::sub::Sub<'a, 'tcx>.TypeRelation<'a, 'tcx>::relate_with_variance::h14347860495291865360
9: 0x101062ffb - middle::ty_relate::relate_substs::h12261092315780768762
10: 0x1010625ea - middle::ty_relate::relate_item_substs::h10479042000615633136
11: 0x1010c3724 - middle::ty_relate::super_relate_tys::h8062529144464697345
12: 0x10105aea2 - middle::infer::sub::Sub<'a, 'tcx>.TypeRelation<'a, 'tcx>::tys::h39efa003c9af43d1dqx
13: 0x1010c8227 - middle::infer::InferCtxt<'a, 'tcx>::sub_types::h43541a86e23825d8Xjz
14: 0x1006eee35 - check::method::probe::ProbeContext<'a, 'tcx>::consider_candidates::hb77291381a7d8dc300h
15: 0x1006eebd9 - check::method::probe::ProbeContext<'a, 'tcx>::pick_method::ha530aac6fb2586e2XWh
16: 0x1006edfa6 - check::method::probe::ProbeContext<'a, 'tcx>::pick_core::h9d29a0dbf0c8dd7bRRh
17: 0x1006e378c - check::method::probe::probe::closure.31169
18: 0x1006e0e59 - check::method::probe::probe::hc6eba1678c1d154fWGg
19: 0x1006fbb7d - check::method::resolve_ufcs::he4f736b36751a4a2gJj
20: 0x100788280 - check::check_expr_with_unifier::h3772037143783809604
21: 0x10071d25c - check::callee::check_call::h6e64f97ca920f598QTl
22: 0x10076bd51 - check::check_expr_with_unifier::h11298596628612541945
23: 0x100792a7b - check::check_decl_local::hf2bb5e27a41be699hOr
24: 0x10073b1da - check::check_block_with_expected::h1a2a965f24479edbnUr
25: 0x10071c828 - check::check_fn::h4b472c723dc36ca2UGn
26: 0x100736985 - check::check_bare_fn::h87d6505bed3e4c61twn
27: 0x10073f887 - check::check_method_body::h1802c6d6e15675a6Y7n
28: 0x1007348cb - check::CheckItemBodiesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_item::h97ae569543a98538wtn
29: 0x1007fef4a - check_crate::closure.38028
30: 0x1007fa357 - check_crate::h722813c75c795e06XcC
31: 0x1005635f4 - driver::phase_3_run_analysis_passes::h3394cefeecbff846nGa
32: 0x100544ffc - driver::compile_input::hf0607b3d1fd498bcQba
33: 0x10060d5a3 - run_compiler::he7a5311c755081d7z4b
34: 0x10060b0ca - boxed::F.FnBox::call_box::h5234503372052129763
35: 0x10060a567 - rt::unwind::try::try_fn::h4031265711883657142
36: 0x103acf508 - rust_try_inner
37: 0x103acf4f5 - rust_try
38: 0x10060a840 - boxed::F.FnBox::call_box::h1044299548107784679
39: 0x103a4cffd - sys::thread::create::thread_start::ha3be9b31a8775143L4u
40: 0x7fff916a4267 - _pthread_body
41: 0x7fff916a41e4 - _pthread_start
Could not compile rust-cleverbot.
Caused by:
Process didn't exit successfully: rustc src/lib.rs --crate-name cleverbot --crate-type lib -g --out-dir /Users/giovanni/Desktop/rust-cleverbot/target/debug --emit=dep-info,link -L dependency=/Users/giovanni/Desktop/rust-cleverbot/target/debug -L dependency=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps --extern url=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/liburl-beb2c5952735425a.rlib --extern crypto=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/libcrypto-67f1ad94f3ffe5f4.rlib --extern hyper=/Users/giovanni/Desktop/rust-cleverbot/target/debug/deps/libhyper-f7b4259bc2dab307.rlib -L native=/usr/lib -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/openssl-sys-5040130ff99796a0/out -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/rust-crypto-67f1ad94f3ffe5f4/out -L native=/Users/giovanni/Desktop/rust-cleverbot/target/debug/build/time-e758cbe877e9589d/out (exit code: 101)

@RoxasShadow
Copy link
Author

Seems to be a duplicate of #25071. I'm closing this, in the meanwhile I'll check if with the nightly will be fix it.

Edit: Works with the latest nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant