Skip to content

internal compiler error: unexpected panic #94792

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
luyikk opened this issue Mar 10, 2022 · 1 comment
Closed

internal compiler error: unexpected panic #94792

luyikk opened this issue Mar 10, 2022 · 1 comment
Labels
C-bug Category: This is a bug. 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.

Comments

@luyikk
Copy link

luyikk commented Mar 10, 2022

Code

    fn write(&self, now: &mut DeferredNow, record: &Record) -> std::io::Result<()> {
        let level = record.level();
        write!(
            std::io::stderr(),
            "[{} {} {}:{}] {}\r\n",
            now.format(TS_DASHES_BLANK_COLONS_DOT_BLANK),
            style(level).paint(level.to_string()),
            get_file_name(record.file()).unwrap_or("<unnamed>"),
            record.line().unwrap_or(0),
            record.args()
        )
    }

Meta

rustc --version --verbose:

rustc 1.59.0-nightly (f8abed9ed 2021-12-26)

Error output

thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', compiler\rustc_query_impl\src\on_disk_cache.rs:500:22
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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.59.0-nightly (f8abed9ed 2021-12-26) running on x86_64-pc-windows-msvc
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [typeck] type-checking `stdout_log::<impl at src\stdout_log.rs:21:1: 42:2>::write`
#1 [analysis] running analysis passes on this crate
end of query stack
warning: 1 warning emitted

error: could not compile `websocket_gateway`; 2 warnings emitted
Process finished with exit code 101

Backtrace

<backtrace>

@luyikk luyikk added C-bug Category: This is a bug. 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. labels Mar 10, 2022
@ehuss
Copy link
Contributor

ehuss commented Mar 24, 2022

Thanks for the report! 1.59.0-nightly (f8abed9ed 2021-12-26) is quite old. Closing as a duplicate of #92163. I suggest trying with the latest nightly.

@ehuss ehuss closed this as completed Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. 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

2 participants