about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-01-01 03:06:38 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-01-25 00:21:03 +1100
commitfbef241709093b3fb18cb12500fd33e4ab964b62 (patch)
tree321f775a86430cc2dc03ad94b6f542252641f91f /src/rustllvm/RustWrapper.cpp
parent000dc07f71baafc31da74e392ad5530fb6de9757 (diff)
downloadrust-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