-
-
Save nikomatsakis/b1b4f96cc4d80b75c414a8aa6807aa2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lunch-box. RUST_BACKTRACE=1 rustc issue-27942.rs | |
error: internal compiler error: src/librustc_typeck/collect.rs:1123: compute_type_of_item: unexpected item type: ItemTrait(Normal, Generics { lifetimes: [LifetimeDef { lifetime: lifetime(11: 'a), bounds: [], pure_wrt_drop: false }], ty_params: [TyParam { name: R(87), id: NodeId(8), bounds: [TraitTyParamBound(PolyTraitRef { bound_lifetimes: [], trait_ref: TraitRef { path: path(Resources<'a>), ref_id: NodeId(9) }, span: issue-27942.rs:13:25: 13:38 }, None)], default: None, span: issue-27942.rs:13:22: 13:23, pure_wrt_drop: false }], where_clause: WhereClause { id: NodeId(12), predicates: [] }, span: issue-27942.rs:13:17: 13:39 }, [], [TraitItemRef { id: TraitItemId { node_id: NodeId(13) }, name: select(88), kind: Method { has_self: true }, span: issue-27942.rs:17:5: 17:45, defaultness: Default { has_value: false } }]) | |
--> issue-27942.rs:13:1 | |
| | |
13 | / pub trait Buffer<'a, R: Resources<'a>> { | |
14 | | //~^ NOTE the lifetime 'a as defined on the trait at 13:1... | |
15 | | //~| NOTE ...does not necessarily outlive the lifetime 'a as defined on the trait | |
16 | | | |
... | | |
25 | | //~| NOTE the anonymous lifetime #1 defined on the method body at 17:5... | |
26 | | } | |
| |_^ | |
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: rustc 1.22.0-dev running on x86_64-unknown-linux-gnu | |
note: run with `RUST_BACKTRACE=1` for a backtrace | |
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:439:8 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
stack backtrace: | |
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 | |
1: std::sys_common::backtrace::print | |
at src/libstd/sys_common/backtrace.rs:71 | |
at src/libstd/sys_common/backtrace.rs:60 | |
2: std::panicking::default_hook::{{closure}} | |
at src/libstd/panicking.rs:381 | |
3: std::panicking::default_hook | |
at src/libstd/panicking.rs:391 | |
4: std::panicking::rust_panic_with_hook | |
at src/libstd/panicking.rs:577 | |
5: std::panicking::begin_panic | |
at /home/nmatsakis/versioned/rust-2/src/libstd/panicking.rs:538 | |
6: rustc_errors::Handler::span_bug | |
at /home/nmatsakis/versioned/rust-2/<panic macros>:3 | |
7: rustc::session::opt_span_bug_fmt::{{closure}} | |
at /home/nmatsakis/versioned/rust-2/src/librustc/session/mod.rs:883 | |
8: rustc::session::span_bug_fmt | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1334 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1323 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:365 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:279 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1319 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1334 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/session/mod.rs:880 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/session/mod.rs:873 | |
9: rustc_typeck::collect::type_of | |
at src/librustc_typeck/collect.rs:1123 | |
10: rustc::ty::maps::<impl rustc::ty::maps::queries::type_of<'tcx>>::try_get_with::{{closure}}::{{closure}}::run_provider | |
at src/librustc/ty/maps.rs:721 | |
11: rustc::dep_graph::graph::DepGraph::with_task | |
at src/librustc/dep_graph/graph.rs:132 | |
12: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::cycle_check | |
at src/librustc/ty/maps.rs:724 | |
at /home/nmatsakis/versioned/rust-2/src/librustc_errors/lib.rs:555 | |
at src/librustc/ty/maps.rs:710 | |
at src/librustc/ty/maps.rs:282 | |
13: rustc::ty::maps::<impl rustc::ty::maps::queries::type_of<'tcx>>::try_get | |
at src/librustc/ty/maps.rs:707 | |
at src/librustc/ty/maps.rs:757 | |
14: rustc::ty::maps::TyCtxtAt::type_of | |
at src/librustc/ty/maps.rs:806 | |
15: rustc::infer::error_reporting::different_lifetimes::<impl rustc::infer::InferCtxt<'a, 'gcx, 'tcx>>::find_anon_type | |
at src/librustc/ty/maps.rs:799 | |
at src/librustc/infer/error_reporting/different_lifetimes.rs:142 | |
16: rustc::infer::error_reporting::different_lifetimes::<impl rustc::infer::InferCtxt<'a, 'gcx, 'tcx>>::try_report_anon_anon_conflict | |
at src/librustc/infer/error_reporting/different_lifetimes.rs:57 | |
17: rustc::infer::error_reporting::<impl rustc::infer::InferCtxt<'a, 'gcx, 'tcx>>::report_region_errors | |
at src/librustc/infer/error_reporting/mod.rs:273 | |
18: rustc::infer::InferCtxt::resolve_regions_and_report_errors | |
at src/librustc/infer/mod.rs:1087 | |
19: rustc_typeck::check::regionck::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::regionck_item | |
at src/librustc_typeck/check/regionck.rs:145 | |
20: rustc::ty::context::tls::enter | |
at src/librustc_typeck/check/wfcheck.rs:60 | |
at src/librustc_typeck/check/mod.rs:599 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/infer/mod.rs:375 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1307 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:365 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:279 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1304 | |
21: rustc::ty::context::GlobalCtxt::enter_local | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1118 | |
22: rustc::infer::InferCtxtBuilder::enter | |
at /home/nmatsakis/versioned/rust-2/src/librustc/infer/mod.rs:375 | |
23: rustc_typeck::check::InheritedBuilder::enter | |
at src/librustc_typeck/check/mod.rs:599 | |
24: rustc_typeck::check::wfcheck::CheckTypeWellFormedVisitor::check_associated_item | |
at src/librustc_typeck/check/wfcheck.rs:53 | |
at src/librustc_typeck/check/wfcheck.rs:163 | |
25: <rustc_typeck::check::wfcheck::CheckTypeWellFormedVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'v>>::visit_trait_item | |
at src/librustc_typeck/check/wfcheck.rs:597 | |
26: rustc::hir::Crate::visit_all_item_likes | |
at /home/nmatsakis/versioned/rust-2/src/librustc/hir/mod.rs:473 | |
27: rustc_typeck::check::check_wf_new | |
at src/librustc_typeck/check/mod.rs:712 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/session/mod.rs:270 | |
at src/librustc_typeck/check/mod.rs:710 | |
28: rustc::util::common::time | |
at src/librustc_typeck/lib.rs:318 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/util/common.rs:119 | |
29: rustc_typeck::check_crate | |
at src/librustc_typeck/lib.rs:318 | |
30: rustc::ty::context::tls::enter_global | |
at src/librustc_driver/driver.rs:1054 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1307 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:365 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:279 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1304 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1291 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:365 | |
at /home/nmatsakis/versioned/rust-2/src/libstd/thread/local.rs:279 | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1288 | |
31: rustc_driver::driver::compile_input | |
at /home/nmatsakis/versioned/rust-2/src/librustc/ty/context.rs:1066 | |
at src/librustc_driver/driver.rs:1023 | |
at src/librustc_driver/driver.rs:202 | |
32: rustc_driver::run_compiler | |
at src/librustc_driver/lib.rs:315 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment