Skip to content

Commit bc8c8a8

Browse files
committed
lowering works
1 parent fbcd0ac commit bc8c8a8

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
880880
target_span: Span,
881881
extra_hir_attributes: &[hir::Attribute],
882882
) -> &'hir [hir::Attribute] {
883-
if attrs.is_empty() {
883+
if attrs.is_empty() && extra_hir_attributes.is_empty() {
884884
&[]
885885
} else {
886886
let mut lowered_attrs = self.lower_attrs_vec(attrs, self.lower_span(target_span));

0 commit comments

Comments
 (0)