From 9b1c9c6be04000a13aa9aa038d3c4c9c162f3061 Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Fri, 13 May 2022 13:18:12 +0800 Subject: [PATCH] Update "Match Expressions" to remove 'cold' --- src/expressions/match-expr.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/expressions/match-expr.md b/src/expressions/match-expr.md index febf60cc3..edbc63658 100644 --- a/src/expressions/match-expr.md +++ b/src/expressions/match-expr.md @@ -125,7 +125,7 @@ Moreover, by holding a shared reference while evaluating the guard, mutation ins ## Attributes on match arms Outer attributes are allowed on match arms. -The only attributes that have meaning on match arms are [`cfg`], [`cold`], and the [lint check attributes]. +The only attributes that have meaning on match arms are [`cfg`] and the [lint check attributes]. [Inner attributes] are allowed directly after the opening brace of the match expression in the same expression contexts as [attributes on block expressions]. @@ -135,7 +135,6 @@ The only attributes that have meaning on match arms are [`cfg`], [`cold`], and t [_InnerAttribute_]: ../attributes.md [_OuterAttribute_]: ../attributes.md [`cfg`]: ../conditional-compilation.md -[`cold`]: ../attributes/codegen.md#the-cold-attribute [lint check attributes]: ../attributes/diagnostics.md#lint-check-attributes [Range Expression]: range-expr.md