From 3f1ed8608d6c049b4f5beab95fe8acd5ae310b76 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 8 Oct 2014 16:44:40 -0400 Subject: [PATCH 1/2] remove crate_id attribute, add crate_name one this is true as of https://github.com/rust-lang/rust/pull/15319 --- src/doc/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index a9e247ab93b..7c0caf0d915 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1894,7 +1894,7 @@ type int8_t = i8; ### Crate-only attributes -- `crate_id` - specify the this crate's crate ID. +- `crate_name` - specify the this crate's crate name. - `crate_type` - see [linkage](#linkage). - `feature` - see [compiler features](#compiler-features). - `no_builtins` - disable optimizing certain code patterns to invocations of From 557014cd8361db4e9bd10404f4c2e3e7ab64193e Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 8 Oct 2014 16:45:42 -0400 Subject: [PATCH 2/2] add mention of test attribute Fixes #16413 --- src/doc/reference.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/reference.md b/src/doc/reference.md index 7c0caf0d915..761d33c7b43 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1924,6 +1924,8 @@ type int8_t = i8; - `start` - indicates that this function should be used as the entry point, overriding the "start" language item. See the "start" [language item](#language-items) for more details. +- `test` - indicates that this function is a test function, to only be compiled + in case of `--test`. ### Static-only attributes