Skip to content

Commit

Permalink
Fix attr syntax in recursion limit diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 11, 2015
1 parent 099b411 commit 78b7e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/recursion_limit.rs
Expand Up @@ -12,7 +12,7 @@
//
// There are various parts of the compiler that must impose arbitrary limits
// 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.

use session::Session;
Expand All @@ -34,6 +34,6 @@ pub fn update_recursion_limit(sess: &Session, krate: &ast::Crate) {
}

sess.span_err(attr.span, "malformed recursion limit attribute, \
expected #![recursion_limit(\"N\")]");
expected #![recursion_limit=\"N\"]");
}
}

0 comments on commit 78b7e13

Please sign in to comment.