Skip to content

2018 import ICE #52879

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
benbrittain opened this issue Jul 30, 2018 · 4 comments
Closed

2018 import ICE #52879

benbrittain opened this issue Jul 30, 2018 · 4 comments
Labels
A-edition-2018 Area: The 2018 edition F-rust_2018_preview `#![feature(rust_2018_preview)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone

Comments

@benbrittain
Copy link

use fuchsia_async::{self as fasync};

error: internal compiler error: librustc/hir/def.rs:263: attempted .def_id() on invalid def: Err

thread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:580:9
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: rustc::util::common::panic_hook
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic
   7: rustc_errors::Handler::bug
   8: rustc::session::opt_span_bug_fmt::{{closure}}
   9: rustc::ty::context::tls::with_opt::{{closure}}
  10: rustc::ty::context::tls::with_context_opt
  11: rustc::ty::context::tls::with_opt
  12: rustc::session::opt_span_bug_fmt
  13: rustc::session::bug_fmt
  14: rustc::hir::def::Def::def_id
  15: rustc_privacy::ObsoleteVisiblePrivateTypesVisitor::path_is_private_type
  16: rustc::hir::intravisit::walk_fn_decl
  17: rustc::hir::intravisit::walk_fn
  18: rustc::hir::intravisit::walk_item
  19: rustc::hir::intravisit::walk_item
  20: rustc_privacy::privacy_access_levels
  21: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::privacy_access_levels<'tcx>>::compute
  22: rustc::ty::context::tls::with_context
  23: rustc::dep_graph::graph::DepGraph::with_task_impl
  24: rustc::ty::context::tls::with_related_context
  25: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job
  26: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query
  27: rustc::util::common::time
  28: rustc::ty::context::tls::enter_context
  29: <std::thread::local::LocalKey<T>>::with
  30: rustc::ty::context::TyCtxt::create_and_enter
  31: rustc_driver::driver::compile_input
  32: rustc_driver::run_compiler_with_pool
  33: <scoped_tls::ScopedKey<T>>::set
  34: <scoped_tls::ScopedKey<T>>::set
  35: syntax::with_globals
  36: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  37: __rust_maybe_catch_panic
  38: rustc_driver::run
  39: rustc_driver::main
  40: std::rt::lang_start::{{closure}}
  41: std::panicking::try::do_call
  42: __rust_maybe_catch_panic
  43: std::rt::lang_start_internal
  44: main
  45: __libc_start_main
  46: _start
query stack during panic:
#0 [privacy_access_levels] privacy access levels
end of query stack
error: aborting due to previous error

@benbrittain
Copy link
Author

cc: @cramertj

@aturon
Copy link
Member

aturon commented Jul 30, 2018

cc @petrochenkov

@aturon aturon added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. F-rust_2018_preview `#![feature(rust_2018_preview)]` labels Jul 30, 2018
@Mark-Simulacrum Mark-Simulacrum added this to the Rust 2018 RC milestone Jul 31, 2018
@aturon
Copy link
Member

aturon commented Jul 31, 2018

Would be great to get a small repro.

petrochenkov added a commit to petrochenkov/rust that referenced this issue Aug 2, 2018
@petrochenkov
Copy link
Contributor

#53001 should fix this.

kennytm added a commit to kennytm/rust that referenced this issue Aug 4, 2018
privacy: Fix an ICE in `path_is_private_type`

Fixes rust-lang#52879

(Untested.)
@fmease fmease added the A-edition-2018 Area: The 2018 edition label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-edition-2018 Area: The 2018 edition F-rust_2018_preview `#![feature(rust_2018_preview)]` I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants