Skip to content

ICE regression: "missing expansion backtrace" #41776

Closed
@est31

Description

@est31

The following code ICE's on nightly and beta, but does not ICE on stable:

include!(line!());

For an example that doesn't give an immediate compile error (but later on bc it can't find the file):

include!(concat!("help-files/", file!()));

The ICE looks like:

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/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'missing expansion backtrace', /checkout/src/libcore/option.rs:794

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions