ICE on use
on a macro-generated macro from an external crate/doctest
#91156
Labels
C-bug
Category: This is a bug.
F-adt_const_params
`#![feature(adt_const_params)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried to minimize the code by removing everything except the module containing the offending macro, but it didn't ICE, not sure what to do, so here is my entire code: https://github.com/oxidash/oxibase/tree/ice
ICE occurs on running doctests via
cargo test
(orcargo test --doc
), but also works if you create a separate crate which depends on the above crate and douse oxibase::change_cc;
The specific doctests are in
src/callconv/mod.rs
onchange_cc
andselect_cc
Meta
rustc --version --verbose
:Error output
Both tests fail because they can't compile the doctest, as they get an ICE:
Backtrace
The text was updated successfully, but these errors were encountered: