Skip to content

Commit

Permalink
Document the ignore function attribute.
Browse files Browse the repository at this point in the history
This is very brief, without any usage or motivation. There's more
information in the 'Testing' section of the Rust Book.
  • Loading branch information
rillian committed Apr 12, 2017
1 parent 3a64d81 commit d3f246c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ type int8_t = i8;
item](#language-items) for more details.
- `test` - indicates that this function is a test function, to only be compiled
in case of `--test`.
- `ignore` - indicates that this test function is disabled.
- `should_panic` - indicates that this test function should panic, inverting the success condition.
- `cold` - The function is unlikely to be executed, so optimize it (and calls
to it) differently.
Expand Down

0 comments on commit d3f246c

Please sign in to comment.