Skip to content

Commit 514826b

Browse files
committed
lowering works
1 parent 2b248f7 commit 514826b

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
@@ -879,7 +879,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
879879
target_span: Span,
880880
extra_hir_attributes: &[hir::Attribute],
881881
) -> &'hir [hir::Attribute] {
882-
if attrs.is_empty() {
882+
if attrs.is_empty() && extra_hir_attributes.is_empty() {
883883
&[]
884884
} else {
885885
let mut lowered_attrs = self.lower_attrs_vec(attrs, self.lower_span(target_span));

0 commit comments

Comments
 (0)