diff options
| author | Caio <c410.f3r@gmail.com> | 2019-08-29 20:44:30 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-09-11 10:13:43 -0300 |
| commit | 299d696b91e833f01f37e97b69767fcf6f5cccf0 (patch) | |
| tree | bdff186761c01a5b0f9b225063d9a150e5b62cc8 /src/doc | |
| parent | 34e82a7b793a6cdd27df762bf46bab8cdc92b14a (diff) | |
Stabilize `param_attrs` in Rust 1.39.0
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/param-attrs.md | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/doc/unstable-book/src/language-features/param-attrs.md b/src/doc/unstable-book/src/language-features/param-attrs.md deleted file mode 100644 index 4b83c204ba1..00000000000 --- a/src/doc/unstable-book/src/language-features/param-attrs.md +++ /dev/null @@ -1,27 +0,0 @@ -# `param_attrs` - -The tracking issue for this feature is: [#60406] - -[#60406]: https://github.com/rust-lang/rust/issues/60406 - -Allow attributes in formal function parameter position so external tools and compiler internals can -take advantage of the additional information that the parameters provide. - -Enables finer conditional compilation with `#[cfg(..)]` and linting control of variables. Moreover, -opens the path to richer DSLs created by users. - ------------------------- - -Example: - -```rust -#![feature(param_attrs)] - -fn len( - #[cfg(windows)] slice: &[u16], - #[cfg(not(windows))] slice: &[u8], -) -> usize -{ - slice.len() -} -``` |
