Skip to content

Commit df99e06

Browse files
committed
Rust: temporarily disable attribute macro expansion in library mode
1 parent a4788fd commit df99e06

File tree

1 file changed

+4
-0
lines changed
  • rust/extractor/src/translate

1 file changed

+4
-0
lines changed

rust/extractor/src/translate/base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ impl<'a> Translator<'a> {
709709
}
710710

711711
pub(crate) fn emit_item_expansion(&mut self, node: &ast::Item, label: Label<generated::Item>) {
712+
// TODO: remove this after fixing exponential expansion on libraries like funty-2.0.0
713+
if self.source_kind == SourceKind::Library {
714+
return;
715+
}
712716
(|| {
713717
let semantics = self.semantics?;
714718
let ExpandResult {

0 commit comments

Comments
 (0)