diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-01 03:06:38 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-25 00:21:03 +1100 |
| commit | fbef241709093b3fb18cb12500fd33e4ab964b62 (patch) | |
| tree | 321f775a86430cc2dc03ad94b6f542252641f91f /src/rustllvm/RustWrapper.cpp | |
| parent | 000dc07f71baafc31da74e392ad5530fb6de9757 (diff) | |
| download | rust-fbef241709093b3fb18cb12500fd33e4ab964b62.tar.gz rust-fbef241709093b3fb18cb12500fd33e4ab964b62.zip | |
Add a lint to detect unconditional recursion.
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
