mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user