about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorDaniel J Rollins <daniel@djrollins.io>2016-03-05 00:26:45 +0000
committerManish Goregaokar <manishsmail@gmail.com>2016-03-19 22:06:41 +0530
commit2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7 (patch)
treed7c45eef245bed161a49111952f38734dda298d8 /src/rustllvm/ExecutionEngineWrapper.cpp
parent7c66a89849b2d0025121a0898c4ab298da8814bf (diff)
downloadrust-2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7.tar.gz
rust-2dd5776b1110a24d9ceb1d1f89dd684d0e63fbf7.zip
Add note if method is called on a function object
Fixes issue #29124.

If method is called on a function type a note is generated to suggest
that the developer may have forgotten to call it.

e.g.

fn main() {
    let mut guess = String::new();
    std::io::stdin.read_line(&mut guess);
}

will generate the note:

note: called method on function type. did you mean `std::io::stdin().read_line(..)`?
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions