From 634244e63ffb9acee22083611af3018404cef7c9 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 15 Aug 2021 10:38:45 -0700 Subject: [PATCH] Update RELEASES to clarify attribute macro values. --- RELEASES.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 19fe97deacc..d1643bea618 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4,18 +4,13 @@ Version 1.54.0 (2021-07-29) Language ----------------------- -- [You can now use macros for values in built-in attribute macros.][83366] - While a seemingly minor addition on its own, this enables a lot of - powerful functionality when combined correctly. Most notably you can - now include external documentation in your crate by writing the following. +- [You can now use macros for values in some built-in attributes.][83366] + This primarily allows you to call macros within the `#[doc]` attribute. For + example, to include external documentation in your crate, you can now write + the following: ```rust #![doc = include_str!("README.md")] ``` - You can also use this to include auto-generated modules: - ```rust - #[path = concat!(env!("OUT_DIR"), "/generated.rs")] - mod generated; - ``` - [You can now cast between unsized slice types (and types which contain unsized slices) in `const fn`.][85078]