rollup merge of #20964: sfackler/recursion-syntax

This commit is contained in:
Alex Crichton 2015-01-15 14:11:28 -08:00
commit 0ad0b0ee55

View file

@ -12,7 +12,7 @@
// //
// There are various parts of the compiler that must impose arbitrary limits // There are various parts of the compiler that must impose arbitrary limits
// on how deeply they recurse to prevent stack overflow. Users can override // on how deeply they recurse to prevent stack overflow. Users can override
// this via an attribute on the crate like `#![recursion_limit(22)]`. This pass // this via an attribute on the crate like `#![recursion_limit="22"]`. This pass
// just peeks and looks for that attribute. // just peeks and looks for that attribute.
use session::Session; use session::Session;
@ -34,6 +34,6 @@ pub fn update_recursion_limit(sess: &Session, krate: &ast::Crate) {
} }
sess.span_err(attr.span, "malformed recursion limit attribute, \ sess.span_err(attr.span, "malformed recursion limit attribute, \
expected #![recursion_limit(\"N\")]"); expected #![recursion_limit=\"N\"]");
} }
} }