File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,13 @@ Version 1.54.0 (2021-07-29)
4
4
Language
5
5
-----------------------
6
6
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:
11
11
```rust
12
12
#![doc = include_str!("README.md")]
13
13
```
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
- ```
19
14
20
15
- [You can now cast between unsized slice types (and types which contain
21
16
unsized slices) in `const fn`.][85078]
You can’t perform that action at this time.
0 commit comments