Skip to content

ICE: "Missing span for DefIndex" on pub macro_rules #84810

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
Lokathor opened this issue May 2, 2021 · 4 comments
Closed

ICE: "Missing span for DefIndex" on pub macro_rules #84810

Lokathor opened this issue May 2, 2021 · 4 comments
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-metadata Area: Crate metadata C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-nightly This issue requires a nightly compiler in some way. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Lokathor
Copy link
Contributor

Lokathor commented May 2, 2021

Compiling gba v0.4.0 (D:\dev\gba)
thread 'rustc' panicked at 'Missing span for DefIndex(967)', compiler\rustc_metadata\src\rmeta\decoder.rs:715:32
note: run with RUST_BACKTRACE=1 environment variable to display a 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.53.0-nightly (42816d6 2021-04-24) running on x86_64-pc-windows-msvc

note: compiler flags: -Z unstable-options -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C incremental -C link-arg=-Tlinker.ld --crate-type bin

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

query stack during panic:
end of query stack
error: could not compile gba

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
[Finished running. Exit status: 0]

Repo state when the ICE happened: https://github.com/rust-console/gba/tree/8f4847306d2ced104f7e59b7bd932c40e0ba6a48

@Lokathor Lokathor 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 May 2, 2021
@Lokathor
Copy link
Contributor Author

Lokathor commented May 2, 2021

This is very likely related to pub macro rules, because it's what i most recently added before the ICE, and when I take it out the ICE goes away.

@jyn514 jyn514 added A-decl-macros-2-0 Area: Declarative macros 2.0 (#39412) A-metadata Area: Crate metadata labels May 2, 2021
@jyn514
Copy link
Member

jyn514 commented May 2, 2021

@Lokathor can you paste a backtrace of the ICE?

@jyn514 jyn514 changed the title an ICE when building the gba crate. ICE: "Missing span for DefIndex" on pub macro_rules May 2, 2021
@jyn514 jyn514 added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) requires-nightly This issue requires a nightly compiler in some way. and removed A-decl-macros-2-0 Area: Declarative macros 2.0 (#39412) labels May 2, 2021
@crlf0710
Copy link
Member

crlf0710 commented May 2, 2021

That functionality is reverted in #83713 .

@jyn514
Copy link
Member

jyn514 commented May 2, 2021

Closing this since the feature is no longer part of the compiler.

@jyn514 jyn514 closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-metadata Area: Crate metadata C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-nightly This issue requires a nightly compiler in some way. 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

3 participants