diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-10 15:58:40 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-10 15:58:40 -0700 |
| commit | 8ebc6d6dbbfe1ccc9a72d003d13c3d267c91c742 (patch) | |
| tree | 9a9bf81b322ac5fe909138a79032ad7fb680cad9 /src/doc | |
| parent | a267b3a9ff041c92c3ce71a285512d97ae8f208b (diff) | |
| parent | bbe832d570e826b2012c09869aa77d6201932730 (diff) | |
| download | rust-8ebc6d6dbbfe1ccc9a72d003d13c3d267c91c742.tar.gz rust-8ebc6d6dbbfe1ccc9a72d003d13c3d267c91c742.zip | |
Rollup merge of #54862 - Havvy:cfg_attr_multi, r=petrochenkov
Fixes #47311. r? @nrc
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/cfg-attr-multi.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/cfg-attr-multi.md b/src/doc/unstable-book/src/language-features/cfg-attr-multi.md new file mode 100644 index 00000000000..6365d3e71c6 --- /dev/null +++ b/src/doc/unstable-book/src/language-features/cfg-attr-multi.md @@ -0,0 +1,20 @@ +# `cfg_attr_multi` + +The tracking issue for this feature is: [#54881] +The RFC for this feature is: [#2539] + +[#54881]: https://github.com/rust-lang/rust/issues/54881 +[#2539]: https://github.com/rust-lang/rfcs/pull/2539 + +------------------------ + +This feature flag lets you put multiple attributes into a `cfg_attr` attribute. + +Example: + +```rust,ignore +#[cfg_attr(all(), must_use, optimize)] +``` + +Because `cfg_attr` resolves before procedural macros, this does not affect +macro resolution at all. \ No newline at end of file |
