Skip to content

Commit

Permalink
Unrolled build for rust-lang#131299
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#131299 - RalfJung:lang-item-track-caller, r=compiler-errors

fix typo in 'lang item with track_caller' message

Revival of rust-lang#124912
  • Loading branch information
rust-timer authored Oct 5, 2024
2 parents 2b21f90 + 8faf372 commit 9e08f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LL | #[track_caller]
| ^^^^^^^^^^^^^^^
LL |
LL | fn panic(info: &PanicInfo) -> ! {
| ------------------------------- `#[panic_handler]` function is not allowed to have `#[target_feature]`
| ------------------------------- `#[panic_handler]` function is not allowed to have `#[track_caller]`

error: aborting due to 1 previous error

0 comments on commit 9e08f8b

Please sign in to comment.