From a6dfd0cc18614a4232d0e533539bad9981a49efd Mon Sep 17 00:00:00 2001 From: derek-homel Date: Tue, 4 Aug 2026 19:02:23 -0400 Subject: [PATCH] docs: fix typo in AllowExprMetavar comment Fixes a small typo in the documentation comment for AllowExprMetavar. Changes decrarative to `declarative`. Change in compiler/rustc_attr_parsing/src/parser.rs: Line 492 --- compiler/rustc_attr_parsing/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_attr_parsing/src/parser.rs b/compiler/rustc_attr_parsing/src/parser.rs index c4b2a5b509051..76587ba9f0ead 100644 --- a/compiler/rustc_attr_parsing/src/parser.rs +++ b/compiler/rustc_attr_parsing/src/parser.rs @@ -489,7 +489,7 @@ fn expr_to_lit<'sess>( } } -/// Whether expansions of `expr` metavariables from decrarative macros +/// Whether expansions of `expr` metavariables from declarative macros /// are permitted. Used when parsing meta items; currently, only `cfg` predicates /// enable this option #[derive(Clone, Copy, PartialEq, Eq)]