From 658534c725644e606bab4e1e7414f669a33bb6d1 Mon Sep 17 00:00:00 2001 From: Sije Harkema Date: Mon, 15 Jan 2024 12:13:22 +0100 Subject: [PATCH] Fix reference to cold attribute --- content/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index e9d8c39..8c4d8c4 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6785,7 +6785,7 @@ Attributes primarily governing emitted code: | `#[inline]` | `F` | Nicely suggest compiler should inline function at call sites. {{ ref(page="attributes/codegen.html#the-inline-attribute") }}| | `#[inline(always)]` | `F` | Emphatically threaten compiler to inline call, or else. {{ ref(page="attributes/codegen.html#the-inline-attribute") }}| | `#[inline(never)]` | `F` | Instruct compiler to feel sad if it still inlines the function. {{ ref(page="attributes/codegen.html#the-inline-attribute") }} | -| `#[cold]` | `F` | Hint that function probably isn't going to be called. {{ ref(page="codegen.html#the-cold-attribute") }}| +| `#[cold]` | `F` | Hint that function probably isn't going to be called. {{ ref(page="attributes/codegen.html#the-cold-attribute") }}| | `#[target_feature(enable="x")]` | `F` | Enable CPU feature (e.g., `avx2`) for code of `unsafe fn`. {{ ref(page="attributes/codegen.html#the-target_feature-attribute") }}| | `#[track_caller]` | `F` | Allows `fn` to find **`caller`**{{ std(page="core/panic/struct.Location.html#method.caller") }} for better panic messages. {{ ref(page="attributes/codegen.html#the-track_caller-attribute") }}| | `#[repr(X)]`1 | `T` | Use another representation instead of the default **`rust`** {{ ref(page="type-layout.html#the-default-representation") }} one: |