-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
ICE "attempting to document proc-macro re-export" #52129
Comments
This was caused by #51611. It used to be a silent failure but was changed into an ICE. cc. @QuietMisdreavus |
Happens for me as well: https://gitlab.com/KonradBorowski/result_float/-/jobs/81199544 |
Minimal reproduction: extern crate proc_macro;
pub use proc_macro::*; ...although it depends on |
rustdoc: don't panic when the cross-re-export handler sees a proc-macro When i moved the macro cross-re-export inlining code into `clean::inline`, i thought that if a macro had a `Def` that said it was a bang macro, it wouldn't be a proc macro. I thought wrong. Turns out, the `quote!()` in `libproc_macro` is actually a proc-macro, and when the `quote!()` macro is re-exported, this proc-macro is accessed in its place. This causes any `proc_macro::*` glob re-export to pull in this proc-macro, causing the assertion i added to fire, leading to an ICE. This replaces that with an Option that ignores proc-macros for the time being. Fixes #52129
Running
cargo doc
onsynstructure
0.6.1 (which is transitively depended on by the latestfailure_derive
release) fails with an ICE.Repro:
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: