Skip to content

Rocket dev branch ice on unstable  #81908

Closed
@tbelaire

Description

@tbelaire

Code

https://github.com/SergioBenitez/Rocket/blob/master/core/lib/src/logger.rs?branch=master#c24f15c1#L94

rustc --version --verbose:

note: rustc 1.51.0-nightly (04caa632d 2021-01-30) running on x86_64-unknown-linux-gnu
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type lib

Error output

   Compiling rocket v0.5.0-dev (https://github.com/SergioBenitez/rocket?branch=master#c24f15c1)
   Compiling rocket_contrib v0.5.0-dev (https://github.com/SergioBenitez/rocket?branch=master#c24f15c1)
error: internal compiler error: failed to process buffered lint here
  --> /home/tbelaire/.cargo/git/checkouts/rocket-8bf16d9ca7e90bdc/c24f15c/core/lib/src/logger.rs:94:68
   |
94 | macro_rules! info_ { ($($args:expr),+) => { log_!(info: $($args),+); }; }
   |                                                                    ^
   | 
  ::: /home/tbelaire/.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)

error: internal compiler error: failed to process buffered lint here
  --> /home/tbelaire/.cargo/git/checkouts/rocket-8bf16d9ca7e90bdc/c24f15c/core/lib/src/logger.rs:92:70
   |
92 | macro_rules! error_ { ($($args:expr),+) => { log_!(error: $($args),+); }; }
   |                                                                      ^
   | 
  ::: /home/tbelaire/.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)

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:974:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:435:5
   2: rustc_errors::HandlerInner::flush_delayed
   3: <rustc_errors::HandlerInner as core::ops::drop::Drop>::drop
   4: core::ptr::drop_in_place<rustc_session::parse::ParseSess>
   5: <alloc::rc::Rc<T> as core::ops::drop::Drop>::drop
   6: core::ptr::drop_in_place<rustc_interface::interface::Compiler>
   7: rustc_span::with_source_map
   8: rustc_interface::interface::create_compiler_and_run

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