From 93616af42f4770edd681245933455ace84de5c02 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 25 Aug 2015 10:02:58 -0700 Subject: [PATCH] Document the recursion_limit crate attribute --- src/doc/reference.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index 70e3145903fbf..dbcfafaf1c17a 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1881,11 +1881,15 @@ type int8_t = i8; - `no_start` - disable linking to the `native` crate, which specifies the "start" language item. - `no_std` - disable linking to the `std` crate. -- `plugin` — load a list of named crates as compiler plugins, e.g. +- `plugin` - load a list of named crates as compiler plugins, e.g. `#![plugin(foo, bar)]`. Optional arguments for each plugin, i.e. `#![plugin(foo(... args ...))]`, are provided to the plugin's registrar function. The `plugin` feature gate is required to use this attribute. +- `recursion_limit` - Sets the maximum depth for potentially + infinitely-recursive compile-time operations like + auto-dereference or macro expansion. The default is + `#![recursion_limit="64"]`. ### Module-only attributes