You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a MultiDecoratorpush function items on an attribute defined on the crate level (#![...) will result in the compiler crashing if these functions are called from the code.
#![decorator]// Changing this to #[decorator] prevents the crash.fnmain(){decorated_method();// Commenting out this line prevents the crash.}
Edit: I removed the branch repro branch from the repository. It was causing problems with Codecov, which figured it was the default branch. Zip file of the repro case attached instead.
The text was updated successfully, but these errors were encountered:
I'm not sure this is a bug or not -- I don't think plugins were intended to be used like this. But maybe the compiler should report a better error in that case.
TimNN
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Oct 24, 2017
Closing in favor of proc macros over syntax extensions. There are still ICEs with proc macros in the crate-level case, but those are described in #41430 in more detail.
Having a
MultiDecorator
push
function items on an attribute defined on the crate level (#![...
) will result in the compiler crashing if these functions are called from the code.Full reproduction case is at
https://github.com/Rantanen/com-export-rs/tree/issueintercom-issue.zip
Use
cargo run --example example
Meta
rustc --version --verbose
:rustc 1.22.0-nightly (f6d7514 2017-10-17)
binary: rustc
commit-hash: f6d7514
commit-date: 2017-10-17
host: x86_64-pc-windows-msvc
release: 1.22.0-nightly
LLVM version: 4.0
Backtrace:
Edit: I removed the branch repro branch from the repository. It was causing problems with Codecov, which figured it was the default branch. Zip file of the repro case attached instead.
The text was updated successfully, but these errors were encountered: