Skip to content

Commit f2d7361

Browse files
committed
Address review comments
1 parent c5c8bbd commit f2d7361

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_ast_lowering/src/delegation.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ static ATTRIBUTES_ADDITIONS: &[AttributeAdditionInfo] = &[
8282
kind: AttributeAdditionKind::Inherit {
8383
factory: |span, original_attribute| {
8484
let reason = match original_attribute {
85-
hir::Attribute::Parsed(AttributeKind::MustUse {
86-
span: _,
87-
reason: Some(reason),
88-
}) => Some(reason.clone()),
85+
hir::Attribute::Parsed(AttributeKind::MustUse { reason, .. }) => reason.clone(),
8986
_ => None,
9087
};
9188

0 commit comments

Comments
 (0)