Skip to content
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

"failed to clean lifetimes" ICE #57806

Closed
alecmocatta opened this issue Jan 21, 2019 · 0 comments
Closed

"failed to clean lifetimes" ICE #57806

alecmocatta opened this issue Jan 21, 2019 · 0 comments
Labels
A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@alecmocatta
Copy link
Contributor

This occurs for me when building docs for the binaries of this crate.

$ RUST_BACKTRACE=full cargo doc --bin parquet-read
 Documenting parquet v0.4.2 (/Users/alecmocatta/Documents/parquet-rs)
thread 'rustc' panicked at 'failed to clean lifetimes', src/libcore/option.rs:1038:5
stack backtrace:
   0:        0x110a89fe3 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h83d21a11c9739fa9
   1:        0x110a82d3c - std::sys_common::backtrace::_print::h143d578905e6ceef
   2:        0x110a86591 - std::panicking::default_hook::{{closure}}::he9aa2169f1df4a35
   3:        0x110a86297 - std::panicking::default_hook::ha5ca10441aa8d914
   4:        0x110a86d1e - std::panicking::rust_panic_with_hook::h60fbdddf70bb6cf1
   5:        0x110a8683c - std::panicking::continue_panic_fmt::ha9037378cc7e8b9d
   6:        0x110a86728 - rust_begin_unwind
   7:        0x110aaec01 - core::panicking::panic_fmt::h7aa6bbc1790ceb35
   8:        0x110aaed18 - core::option::expect_failed::hf8864c683e7846fc
   9:        0x10c52f636 - <rustc::ty::OutlivesPredicate<&'tcx rustc::ty::TyS<'tcx>, &'tcx rustc::ty::sty::RegionKind> as rustdoc::clean::Clean<rustdoc::clean::WherePredicate>>::clean::h8c83f127d472364e
  10:        0x10c52f07b - <rustc::ty::Predicate<'a> as rustdoc::clean::Clean<rustdoc::clean::WherePredicate>>::clean::h57759336b40554be
  11:        0x10c5763f1 - <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter::h6701f1ac61f73681
  12:        0x10c52fdc9 - <(&'a rustc::ty::Generics, &'a alloc::rc::Rc<rustc::ty::GenericPredicates<'tcx>>) as rustdoc::clean::Clean<rustdoc::clean::Generics>>::clean::h6227f5203c26b56c
  13:        0x10c3c7e23 - rustdoc::clean::inline::build_impl::h2afdfed24f126c1e
  14:        0x10c41820d - rustdoc::passes::collect_trait_impls::collect_trait_impls::hd125a8182a51a810
  15:        0x10c6ba83a - rustdoc::core::run_core::{{closure}}::{{closure}}::h0abc7f5ed4583427
  16:        0x10c6ade51 - <std::thread::local::LocalKey<T>>::with::h7b2475d385155e5a
  17:        0x10c4fdb1a - rustc::ty::context::TyCtxt::create_and_enter::h77d7a6dec8f0fb7a
  18:        0x10c3e1bf3 - rustc_driver::driver::phase_3_run_analysis_passes::h5f933d60bd8eb09a
  19:        0x10c667df1 - <scoped_tls::ScopedKey<T>>::set::hf898052d8b827a97
  20:        0x10c40c8d4 - rustdoc::core::run_core::h0d2b755b25d068d1
  21:        0x10c6934e5 - syntax::with_globals::h413885fa053c6ca8
  22:        0x10c5d8a81 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2bd01fe46adfca3d
  23:        0x10c5da17a - std::panicking::try::do_call::hc012f2ad699bc0b3
  24:        0x110a9682e - __rust_maybe_catch_panic
  25:        0x10c522146 - <F as alloc::boxed::FnBox<A>>::call_box::h431cf234c18277b1
  26:        0x110a9578b - std::sys::unix::thread::Thread::new::thread_start::hca3f3aefecc09278
  27:     0x7fff5ab6e33c - _pthread_body
  28:     0x7fff5ab712a6 - _pthread_start

note: rustc 1.33.0-nightly (daa53a52a 2019-01-17) running on x86_64-apple-darwin

Caused by:
  process didn't exit successfully: `rustdoc --edition=2018 --crate-name parquet_read src/bin/parquet-read.rs --color always -o /Users/alecmocatta/Documents/parquet-rs/target/doc -L dependency=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps --extern brotli=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libbrotli-75afc0754caeda4d.rmeta --extern byteorder=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libbyteorder-4d0dd065d992dad5.rmeta --extern chrono=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libchrono-c35de26a21724126.rmeta --extern flate2=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libflate2-5233adf75f215b04.rmeta --extern lz4=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/liblz4-fde9299980628dee.rmeta --extern num_bigint=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libnum_bigint-c3f8a3fbd3b4d90e.rmeta --extern parquet=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libparquet-54605923f319a6c3.rmeta --extern parquet_format=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libparquet_format-10295f5590858f68.rmeta --extern quick_error=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libquick_error-fa4ab7ed783277e5.rmeta --extern snap=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libsnap-bee0381acc0f9317.rmeta --extern sum=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libsum-971583dff7abc316.rmeta --extern thrift=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libthrift-f7f4b4975e3fbb01.rmeta --extern zstd=/Users/alecmocatta/Documents/parquet-rs/target/debug/deps/libzstd-e826ad35f84d0a03.rmeta` (exit code: 1)
@estebank estebank added A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jan 22, 2019
Aaron1011 added a commit to Aaron1011/rust that referenced this issue Jan 23, 2019
There's nothing to render when we have a bound involving ReErased (either
a type or region outliving it), so we don't attempt to generate a clean
WherePredicate

Fixes rust-lang#57806
bors added a commit that referenced this issue Feb 4, 2019
Don't try to clean predicates involving ReErased

There's nothing to render when we have a bound involving ReErased (either
a type or region outliving it), so we don't attempt to generate a clean
WherePredicate

Fixes #57806

I haven't been able to come up with a minimized reproduction for the issue, but I've confirmed that this allows the docs to build for `parqet-rs`
bors added a commit that referenced this issue Feb 5, 2019
Don't try to clean predicates involving ReErased

There's nothing to render when we have a bound involving ReErased (either
a type or region outliving it), so we don't attempt to generate a clean
WherePredicate

Fixes #57806

I haven't been able to come up with a minimized reproduction for the issue, but I've confirmed that this allows the docs to build for `parqet-rs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants