Skip to content

Could not compile Rocket with the latest nightly #81581

Closed
@HTGAzureX1212

Description

@HTGAzureX1212

Code

// This seems to be related to the `rocket` crate. I am pulling that crate off of GitHub so it is the latest master.

Meta

rustc --version --verbose:

rustc 1.51.0-nightly (04caa632d 2021-01-30)
binary: rustc
commit-hash: 04caa632dd10c2bf64b69524c7f9c4c30a436877
commit-date: 2021-01-30
host: x86_64-pc-windows-msvc
release: 1.51.0-nightly
LLVM version: 11.0.1

Error output

error: internal compiler error: failed to process buffered lint here
  --> C:\Users\harry\.cargo\git\checkouts\rocket-8bf16d9ca7e90bdc\c24f15c\core\lib\src\logger.rs:94:68
   |
94 | macro_rules! info_ { ($($args:expr),+) => { log_!(info: $($args),+); }; }
   |                                                                    ^
   |
  ::: C:\Users\harry\.cargo\git\checkouts\rocket-8bf16d9ca7e90bdc\c24f15c\core\lib\src\server.rs:85:23
   |
85 |             Ok(()) => info_!("{}", Paint::green("Response succeeded.")),
   |                       ------------------------------------------------- in this macro invocation
   |
   = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877\compiler\rustc_lint\src\early.rs:384:18
   = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

  --> C:\Users\harry\.cargo\git\checkouts\rocket-8bf16d9ca7e90bdc\c24f15c\core\lib\src\logger.rs:92:70
   |
92 | macro_rules! error_ { ($($args:expr),+) => { log_!(error: $($args),+); }; }
   |                                                                      ^
   |
  ::: C:\Users\harry\.cargo\git\checkouts\rocket-8bf16d9ca7e90bdc\c24f15c\core\lib\src\server.rs:86:23
   |
86 |             Err(e) => error_!("Failed to write response: {:?}.", e),
   |                       --------------------------------------------- in this macro invocation
   |
   = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877\compiler\rustc_lint\src\early.rs:384:18
   = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Backtrace

stack backtrace:
   0:     0x7ffb9b429755 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h07eb7c6246901ad5
   1:     0x7ffb9b455fdb - core::fmt::write::ha3ea633b18d2da75
   2:     0x7ffb9b41c08d - <std::io::IoSlice as core::fmt::Debug>::fmt::h8573cdc9b491acbf
   3:     0x7ffb9b42d8fd - std::panicking::take_hook::h462942ea222a8ec2
   4:     0x7ffb9b42d3c9 - std::panicking::take_hook::h462942ea222a8ec2
   5:     0x7ffb9ba096f7 - rustc_driver::report_ice::hc33e4d260fbc44ec
   6:     0x7ffb9b42e362 - std::panicking::rust_panic_with_hook::h18985e2f09a20bf1
   7:     0x7ffb9b42de51 - rust_begin_unwind
   8:     0x7ffb9b42a12f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h07eb7c6246901ad5
   9:     0x7ffb9b42dda9 - rust_begin_unwind
  10:     0x7ffb9b42dd5c - std::panicking::begin_panic_fmt::h1e00459759aac2c8
  11:     0x7ffba00a2744 - rustc_errors::HandlerInner::delay_as_bug::ha06953acff9f7d8d
  12:     0x7ffba009deb4 - <rustc_errors::HandlerInner as core::ops::drop::Drop>::drop::h32f0e30ae1a18e6e
  13:     0x7ffb9ba235a7 - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h29458aa7f6b0c34e
  14:     0x7ffb9ba2a00a - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h29458aa7f6b0c34e
  15:     0x7ffb9ba2503c - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h29458aa7f6b0c34e
  16:     0x7ffb9ba0c264 - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h29458aa7f6b0c34e
  17:     0x7ffb9b97c95c - <rustc_infer::infer::error_reporting::<impl rustc_infer::infer::InferCtxt>::check_and_note_conflicting_crates::AbsolutePathPrinter as rustc_middle::ty::print::Printer>::print_type::h3de678dd541c9b13
  18:     0x7ffb9ba1ac8b - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h29458aa7f6b0c34e
  19:     0x7ffb9b9ac77d - rustc_driver::pretty::print_after_hir_lowering::h9432b6a55607de6b
  20:     0x7ffb9b43e0ca - std::sys::windows::thread::Thread::new::ha39cc759d7fbecd8
  21:     0x7ffc3d337034 - BaseThreadInitThunk
  22:     0x7ffc3e21d0d1 - RtlUserThreadStart

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.51.0-nightly (04caa632d 2021-01-30) running on x86_64-pc-windows-msvc

note: compiler flags: -C opt-level=3 -C embed-bitcode=no --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `rocket`

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions