summary refs log tree commit diff
path: root/src/test/compile-fail/recursion_limit.rs
AgeCommit message (Collapse)AuthorLines
2015-03-23Refactor how we handle overflow so that it is a fatal error that abortsNiko Matsakis-8/+1
compilation: this removes all the ungainly code that special cases overflow so that we can ensure it propagates.
2015-02-22Restore the coherence visitor and fix falloutsFlavio Percoco-0/+3
2015-01-08Update compile fail tests to use usize.Huon Wilson-1/+1
2015-01-05Un-gate macro_rulesKeegan McAllister-1/+0
2014-12-18librustc: Always parse `macro!()`/`macro![]` as expressions if notPatrick Walton-13/+13
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
2014-12-12Switch to using predicates to drive checking. Correct various tests --Niko Matsakis-2/+2
in most cases, just the error message changed, but in some cases we are reporting new errors that OUGHT to have been reported before but we're overlooked (mostly involving the `'static` bound on `Send`).
2014-12-08Stop masking overflow and propagate it out more aggressively; also improve ↵Niko Matsakis-2/+6
error reporting to suggest to user how to fix.
2014-12-08Add ability to configure recursion limit.Niko Matsakis-0/+47
Fixes #19318.