Skip to content

Commit 75286cb

Browse files
committed
lowering works
1 parent 0d25e75 commit 75286cb

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

0 commit comments

Comments
 (0)