Skip to content

Commit 9e8b143

Browse files
authored
Rollup merge of #88057 - ehuss:releases-doc-macros, r=Mark-Simulacrum
Update RELEASES to clarify attribute macro values. As noted in #87681, macros do not work with the `#[path]` attribute. Since the places where macros *can* be used is very limited, I have changed this to just focus on `#[doc]` which is the only attribute where this is really useful.
2 parents 8660e3d + 634244e commit 9e8b143

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

RELEASES.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -146,18 +146,13 @@ Version 1.54.0 (2021-07-29)
146146
Language
147147
-----------------------
148148

149-
- [You can now use macros for values in built-in attribute macros.][83366]
150-
While a seemingly minor addition on its own, this enables a lot of
151-
powerful functionality when combined correctly. Most notably you can
152-
now include external documentation in your crate by writing the following.
149+
- [You can now use macros for values in some built-in attributes.][83366]
150+
This primarily allows you to call macros within the `#[doc]` attribute. For
151+
example, to include external documentation in your crate, you can now write
152+
the following:
153153
```rust
154154
#![doc = include_str!("README.md")]
155155
```
156-
You can also use this to include auto-generated modules:
157-
```rust
158-
#[path = concat!(env!("OUT_DIR"), "/generated.rs")]
159-
mod generated;
160-
```
161156

162157
- [You can now cast between unsized slice types (and types which contain
163158
unsized slices) in `const fn`.][85078]

0 commit comments

Comments
 (0)