Skip to content

Commit 3d61264

Browse files
committed
lowering works
1 parent eef8939 commit 3d61264

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
@@ -888,7 +888,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
888888
target_span: Span,
889889
extra_hir_attributes: &[hir::Attribute],
890890
) -> &'hir [hir::Attribute] {
891-
if attrs.is_empty() {
891+
if attrs.is_empty() && extra_hir_attributes.is_empty() {
892892
&[]
893893
} else {
894894
let mut lowered_attrs = self.lower_attrs_vec(attrs, self.lower_span(target_span));

0 commit comments

Comments
 (0)