Closed
Description
rust.md#attributes
and rust.md#macros
document some attributes and macros, but give few examples. Also there are some attributes/macros missing.
Attributes:
- abi (already in rust.md; see commit 772028a)
- allow (http://static.rust-lang.org/doc/master/rust.html#lint-check-attributes)
- bench (delegated to Add doc and examples for attributes test and bench #7824)
- cfg (delegated to Document attributes cfg family #7962)
- deny (http://static.rust-lang.org/doc/master/rust.html#lint-check-attributes)
- deriving (http://static.rust-lang.org/doc/master/rust.html#deriving)
- doc (mentioned in commit 58807b0; delegated to Document attribute doc and its sub-language #7963)
- forbid (http://static.rust-lang.org/doc/master/rust.html#lint-check-attributes)
- inline: src/libsyntax/attr.rs (delegated to Document attributes inline {,always,never} #7959)
- lang (handled by document lang attribute #3342; done; see comment dbeea18 )
- license (delegated to Document no-op pass-through attributes #7961)
- link (delegated to Document attributes related to linking: link, link_args, no_link, ...? #7960; see commit d4c40b5)
- link_args (delegated to Document attributes related to linking: link, link_args, no_link, ...? #7960; see commit d4c40b5)
- link_name (already in rust.md; see commit 772028a)
- no_implicit_prelude, see rustc: implement a
#[no_implicit_prelude]
attribute. #7844 - nolink (delegated to Document attributes related to linking: link, link_args, no_link, ...? #7960)
- no_mangle (see librustc/middle/trans/base.rs)
- no_std (see librustc/front/std_inject.rs)
- path (done; see commit d4daa78 )
- should_fail (see librustc/front/test.rs)
- start
- static_assert (see librustc/middle/trans/base.rs)
- test (delegated to Add doc and examples for attributes test and bench #7824)
- unsafe_destructor
- warn (http://static.rust-lang.org/doc/master/rust.html#lint-check-attributes)
Macros:
- asm http://static.rust-lang.org/doc/master/guide-unsafe.html#inline-assembly
- assert http://static.rust-lang.org/doc/master/std/macros/macro.assert.html
- assert_eq http://static.rust-lang.org/doc/master/std/macros/macro.assert_eq.html
- cfg http://static.rust-lang.org/doc/master/std/macros/builtin/macro.cfg.html
- cold
- concat_idents http://static.rust-lang.org/doc/master/std/macros/builtin/macro.concat_idents.html
- bytes http://static.rust-lang.org/doc/master/std/macros/builtin/macro.bytes.html
- debug (http://static.rust-lang.org/doc/master/std/logging/index.html)
- env http://static.rust-lang.org/doc/master/std/macros/builtin/macro.env.html
- error (http://static.rust-lang.org/doc/master/std/logging/index.html)
- file (http://static.rust-lang.org/doc/master/rust.html#syntax-extensions)
- format (http://static.rust-lang.org/doc/master/std/fmt/index.html)
- include (https://github.com/mozilla/rust/blob/master/doc/rust.md#syntax-extensions)
- include_bin (https://github.com/mozilla/rust/blob/master/doc/rust.md#syntax-extensions)
- include_str (https://github.com/mozilla/rust/blob/master/doc/rust.md#syntax-extensions)
- info (http://static.rust-lang.org/doc/master/std/logging/index.html)
- line http://static.rust-lang.org/doc/master/std/macros/builtin/macro.line.html
- log (http://static.rust-lang.org/doc/master/std/logging/index.html)
- log_syntax
- macro_rules
- module_path http://static.rust-lang.org/doc/master/std/macros/builtin/macro.module_path.html
- option_env http://static.rust-lang.org/doc/master/std/macros/builtin/macro.option_env.html
- proto (is gone?)
- quote_expr
- quote_item
- quote_pat
- quote_stmt
- quote_tokens
- quote_ty
- stringify (https://github.com/mozilla/rust/blob/master/doc/rust.md#syntax-extensions)
- warn (http://static.rust-lang.org/doc/master/std/logging/index.html)