Skip to content

Commit 634244e

Browse files
committed
Update RELEASES to clarify attribute macro values.
1 parent c0490a2 commit 634244e

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
@@ -4,18 +4,13 @@ Version 1.54.0 (2021-07-29)
44
Language
55
-----------------------
66

7-
- [You can now use macros for values in built-in attribute macros.][83366]
8-
While a seemingly minor addition on its own, this enables a lot of
9-
powerful functionality when combined correctly. Most notably you can
10-
now include external documentation in your crate by writing the following.
7+
- [You can now use macros for values in some built-in attributes.][83366]
8+
This primarily allows you to call macros within the `#[doc]` attribute. For
9+
example, to include external documentation in your crate, you can now write
10+
the following:
1111
```rust
1212
#![doc = include_str!("README.md")]
1313
```
14-
You can also use this to include auto-generated modules:
15-
```rust
16-
#[path = concat!(env!("OUT_DIR"), "/generated.rs")]
17-
mod generated;
18-
```
1914

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

0 commit comments

Comments
 (0)