From fdd691ba891e9301159da88d92fbbe7e2094c9c4 Mon Sep 17 00:00:00 2001 From: Gurinder Singh Date: Wed, 11 Oct 2023 14:14:10 +0530 Subject: [PATCH] Fix duplicate note on platform_intrinsics feature gate --- compiler/rustc_lint/src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 536f78a73edb6..b57d66634665e 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -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 ); } });