Skip to content

Commit bf9ec9e

Browse files
committed
Merge pull request #20964 from sfackler/recursion-syntax
Fix attr syntax in recursion limit diagnostic Reviewed-by: alexcrichton
2 parents 47c4ac3 + 78b7e13 commit bf9ec9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/recursion_limit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
// There are various parts of the compiler that must impose arbitrary limits
1414
// on how deeply they recurse to prevent stack overflow. Users can override
15-
// this via an attribute on the crate like `#![recursion_limit(22)]`. This pass
15+
// this via an attribute on the crate like `#![recursion_limit="22"]`. This pass
1616
// just peeks and looks for that attribute.
1717

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

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

0 commit comments

Comments
 (0)