summary refs log tree commit diff
path: root/src/test/compile-fail/lint-unconditional-recursion.rs
AgeCommit message (Collapse)AuthorLines
2015-01-25Add a lint to detect unconditional recursion.Huon Wilson-0/+66
E.g. `fn foo() { foo() }`, or, more subtlely impl Foo for Box<Foo+'static> { fn bar(&self) { self.bar(); } } The compiler will warn and point out the points where recursion occurs, if it determines that the function cannot return without calling itself. Closes #17899.