From d8854f083531f64afc28b801645c0efd1ce9f7e0 Mon Sep 17 00:00:00 2001 From: Kane York Date: Wed, 8 May 2024 15:19:57 -0700 Subject: [PATCH] Fix copy-paste error in #124067 Only one of the two mentions of the attribute were updated. --- compiler/rustc_passes/messages.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_passes/messages.ftl b/compiler/rustc_passes/messages.ftl index 9d58d301e2bc2..0cf53481479a5 100644 --- a/compiler/rustc_passes/messages.ftl +++ b/compiler/rustc_passes/messages.ftl @@ -399,7 +399,7 @@ passes_lang_item_fn_with_target_feature = passes_lang_item_fn_with_track_caller = {passes_lang_item_fn} is not allowed to have `#[track_caller]` - .label = {passes_lang_item_fn} is not allowed to have `#[target_feature]` + .label = {passes_lang_item_fn} is not allowed to have `#[track_caller]` passes_lang_item_on_incorrect_target = `{$name}` lang item must be applied to a {$expected_target}