File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 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)
44Language
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]
You can’t perform that action at this time.
0 commit comments