Skip to content

Commit

Permalink
Merge pull request #20964 from sfackler/recursion-syntax
Browse files Browse the repository at this point in the history
Fix attr syntax in recursion limit diagnostic

Reviewed-by: alexcrichton
  • Loading branch information
bors committed Jan 15, 2015
2 parents 48a140e + 78b7e13 commit ee59fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/recursion_limit.rs
Original file line number Diff line number Diff line change
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 ee59fb6

Please sign in to comment.