Rust: re-enable attribute macro expansion in library mode

This commit is contained in:
Arthur Baars
2025-05-27 10:54:48 +02:00
committed by GitHub
parent 0f2d2b7697
commit dc7958071a

View File

@@ -734,10 +734,6 @@ impl<'a> Translator<'a> {
}
pub(crate) fn emit_item_expansion(&mut self, node: &ast::Item, label: Label<generated::Item>) {
// TODO: remove this after fixing exponential expansion on libraries like funty-2.0.0
if self.source_kind == SourceKind::Library {
return;
}
(|| {
let semantics = self.semantics?;
let file = semantics.hir_file_for(node.syntax());