Skip to content

Commit

Permalink
Fix duplicate note on platform_intrinsics feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
gurry committed Oct 11, 2023
1 parent 2e7e0fb commit fdd691b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ impl EarlyLintPass for IncompleteInternalFeatures {
cx.emit_spanned_lint(
INTERNAL_FEATURES,
span,
BuiltinInternalFeatures { name, note },
BuiltinInternalFeatures { name, note: None }, // Passing 'None' as 'BuiltinInternalFeatures' struct already has '#[note]' attr
);
}
});
Expand Down

0 comments on commit fdd691b

Please sign in to comment.