Merge pull request #19588 from github/aibaars/rust-enable-attribute-macros

Rust: re-enable attribute macro expansion in library mode
This commit is contained in:
Arthur Baars
2025-05-29 10:59:07 +02:00
committed by GitHub

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());