We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5c8bbd commit f2d7361Copy full SHA for f2d7361
compiler/rustc_ast_lowering/src/delegation.rs
@@ -82,10 +82,7 @@ static ATTRIBUTES_ADDITIONS: &[AttributeAdditionInfo] = &[
82
kind: AttributeAdditionKind::Inherit {
83
factory: |span, original_attribute| {
84
let reason = match original_attribute {
85
- hir::Attribute::Parsed(AttributeKind::MustUse {
86
- span: _,
87
- reason: Some(reason),
88
- }) => Some(reason.clone()),
+ hir::Attribute::Parsed(AttributeKind::MustUse { reason, .. }) => reason.clone(),
89
_ => None,
90
};
91
0 commit comments